I understand that Ubuntu derivatives support System V, which some consider the old method of starting services for a specifc runlevel and upstart however how do I tell whether a service or daemon is managed by scripts started by init or upstart. Do the commands service --status-all and initctl list convey these or is there a single command that would tell me so?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
|||
|
|
|
When you run ps, one of the fields is ppid. You can use that to track it to its parent (the pid will match the process's ppid). Just track it back recursively. (You could probably script it with ps and awk) or if you prefer a graphical way
or just see if it is in /etc/init.d/* or /etc/rc.d/*
|
|||||||
|