How to find if a service is using Upstart or init.d script?

Asked by koolhead17 on 2012-02-16

I would like to know if there is a way to see which method a service uses Upstart or init.d script

i tried apt-cache showpkg

No luck. Answer would be appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu upstart Edit question
Assignee:
No assignee Edit question
Solved by:
koolhead17
Solved:
2012-02-17
Last query:
2012-02-17
Last reply:
2012-02-17
koolhead17 (koolhead17) said : #2

Hi Sam,
Thanks for the manual.
So what i understood from this is, the easiest way would be :--

$ ls /etc/init | grep <service>
<service>.conf

This makes you find its a upstart job. :)

$ ls /etc/init | grep mysql
mysql.conf