Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I can not use chkconfig tools in ubuntu 12.10

It's a very useful tools to configure the service to autostart or not. Why it's not available now.

share|improve this question

5 Answers

up vote 0 down vote accepted

sysv-rc-conf is an alternate option for ubuntu

usage is almost the same,

install : sudo apt-get install sysv-rc-conf

apache2 auto start sysv-rc-conf apache2 on

check the status sysv-rc-conf --list apache2

share|improve this answer

The Upstart equivalent of chkconfig is the update-rc.d. There's some info on how to use it in the UbuntuBootupHowto linked in L. D. James's answer.

Admittedly, this tool is anything but friendly; it tends to expose the ugly underbelly of SysV init with all it's gory runlevel and priority blackmagic. I have almost never managed to get it to do what I want in the first go. chkconfig did a fantastic job of abstracting all those numbers away and providing a simple, usable interface that was loved by all. Nevertheless, it was always lipstick on a pig.

It's a brave new world and I would suggest you put in some time towards learning how Upstart works so that you can wire new jobs using that. For existing packages/applications that still provide you with SysV init scripts, update-rc.d should allow you to do everything that chkconfig did, except for one usecase. update-rc.d provides no clean way to see what the current status of a given service is, i.e., there is no equivalent of chkconfig --list. For this particular case, I'd suggest ls -l /etc/rc*.d/*${service_name}.

HTH

share|improve this answer
Upstart is to starting the service, I want the service do not start when I reboot my OS. Why the friendly tools is deprecated? and the unfriendly tools take it's place – 王子1986 Feb 19 at 1:32
Like I said above, I agree that update-rc.d is an unfriendly tool and it is somewhat unfortunate that it has been discontinued on Ubuntu. That said, it was always a RHEL family tool that had been ported to Ubuntu. As for avoiding services from starting on booting into a particular runlevel, this can be achieved using Upstart as well. Just look at the 'start on runlevel' line in /etc/init/cron.conf . – dexterous Apr 4 at 4:22

The Ubuntu 12.10 chkconfig package is available for manual install at: https://launchpad.net/ubuntu/quantal/+package/chkconfig

For information and examples on using the "new" upstart look at: https://help.ubuntu.com/community/UpstartHowto and https://help.ubuntu.com/community/UbuntuBootupHowto

share|improve this answer
But the chkconfig in ubuntu popup a lot of unuseful information, very anoying – 王子1986 Feb 4 at 1:32

As of 12.04, chkconfig could be installed using sudo apt-get install chkconfig. I've used it only rarely. I would recommend using Upstart.

Jobservice, along with jobs-admin is a gui based tool for handling some upstart scripts if that is your preference. It can be installed from the software center of by running sudo apt-get install jobservice jobs-admin from a terminal.

If I recall, there did not appear to be an easy way to add new jobs from the GUI.

share|improve this answer

chkconfig is a redhat-ism. In Ubuntu we use upstart instead of sysvinit as used by redhat.

share|improve this answer
Could you give a example? I could use chkconfig in the earlier release of ubuntu. But not now! – 王子1986 Jan 27 at 8:57

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.