In Ubuntu 10.04, rcconf no longer works for managing services.

Any suggested replacement?

link|improve this question

25% accept rate
feedback

3 Answers

Ubuntu has been migrating their sys-V init scripts to upstart. The tool to manage upstart process is initctl; check its man page. You can call directly its aliases:

/sbin/start
/sbin/status
/sbin/reload
/sbin/stop
/sbin/restart

For example:

start apache2
stop apache2
reload apache2
link|improve this answer
I am looking for tool to manage the services' runlevel, not how to start/stop the service. – Howard Apr 25 '11 at 16:51
1  
upstart.ubuntu.com/cookbook – hmontoliu Apr 25 '11 at 18:03
feedback

The rcconf package is still available for Lucid (10.04). You should be able to install it like normal (sudo aptitude/apt-get install rcconf), assuming that you have the universe repositories enabled in your /etc/apt/sources.list. This tool should still work for managing services (or, at least, it does for me).

link|improve this answer
rcconf might not work if the script is managed by upstart – Howard Apr 25 '11 at 16:50
feedback

jobs-admin (and its backend service, jobs-service) is the tool for configuring Upstart scripts. It's not available for 10.04 though. You need 10.10.

Additionally, Ubuntu has no distinction between runlevels other than 0 (halt), 1 (single), and 6 (reboot). Like Debian, it does the same thing for 2-5.

You can change Upstart script dependencies (start-on event, stop-on event, etc) in the service's config file, located at /etc/init/service.conf

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.