Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Any suggested replacement?

share|improve this question

3 Answers 3

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
share|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

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).

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

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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