...
Code Block | ||
---|---|---|
| ||
dpkg - l | grep -i upstart |
Service Management
Upstart
Upstart is moving towards being the official service management utility. So not all services are yet converted to upstart. However, for the ones that are, it is very easy to use.
...
Code Block | ||
---|---|---|
| ||
ls /etc/init/*.conf http://askubuntu.com/questions/42444/the-list-of-running-daemons #possibly upstart way http://askubuntu.com/questions/42444/the-list-of-running-daemons |
update-rc.d
Apache for example is not yet moved to upstart. So to manage it, use update-rc.d,
Code Block | ||
---|---|---|
| ||
sudo update-rc.d apache2 disable update-rc.d: warning: apache2 start runlevel arguments (none) do not match LSB Default-Start values (2 3 4 5) update-rc.d: warning: apache2 stop runlevel arguments (none) do not match LSB Default-Stop values (0 1 6) Disabling system startup links for /etc/init.d/apache2 ... Removing any system startup links for /etc/init.d/apache2 ... /etc/rc0.d/K09apache2 /etc/rc1.d/K09apache2 /etc/rc2.d/S91apache2 /etc/rc3.d/S91apache2 /etc/rc4.d/S91apache2 /etc/rc5.d/S91apache2 /etc/rc6.d/K09apache2 Adding system startup for /etc/init.d/apache2 ... /etc/rc0.d/K09apache2 -> ../init.d/apache2 /etc/rc1.d/K09apache2 -> ../init.d/apache2 /etc/rc6.d/K09apache2 -> ../init.d/apache2 /etc/rc2.d/K09apache2 -> ../init.d/apache2 /etc/rc3.d/K09apache2 -> ../init.d/apache2 /etc/rc4.d/K09apache2 -> ../init.d/apache2 /etc/rc5.d/K09apache2 -> ../init.d/apache2 |
Don't just try and manually remove symlinks from intit.d. Services will be enabled during package updates.
References
Start of good reading on upstart - http://askubuntu.com/questions/19320/whats-the-recommend-way-to-enable-disable-services
...