Take the 2-minute tour ×
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 is it no longer available?

share|improve this question
add comment

6 Answers

on 13.10, none of the above 'solutions' work. Ran sysv-rc-conf, update-rc.d. Nada. sysv-rc-conf says bluetooth is off but it still runs. meh

Says it has been converted to upstart but nothing on how to disable the daemon, where the configuation for upstart is, etc, etc.

So, digging around, you can edit /etc/init/bluetooth.conf and just comment things out, presumably only the following is necessary (though I commented anything that looks relevant):

# exec /usr/sbin/bluetoothd

This will probably break with an upgrade but at least the bloody thing is off for a while.

share|improve this answer
add comment
up vote 9 down vote accepted

sysv-rc-conf is an alternate option for Ubuntu.

The usage is almost the same.

To install:

sudo apt-get install sysv-rc-conf

To configure apache2 to start on boot

sysv-rc-conf apache2 on

equivalent chkconfig command

chkconfig apache2 enable

To check runlevels apache2 is configured to start on

sysv-rc-conf --list apache2

equivalent chkconfig command

chkconfig --list apache2
share|improve this answer
add comment

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

Update: 12-June-2013 The answer at http://askubuntu.com/a/161893/111294 points to a more palatable alternative- sysv-rc-conf.

Update: 28-July-2013 Hmm... it appears that the OP has already answered here (http://askubuntu.com/a/277732/111294) suggesting sysv-rc-conf. Can't see how I missed that, have upvoted that answer now.

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 '13 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 '13 at 4:22
add comment

As of 12.04, chkconfig could be installed using sudo apt-get install chkconfig.

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 or 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
    
upstart.ubuntu.com/cookbook has some good infor for N00bs Like Me. –  K7AAY Oct 16 '13 at 20:41
    
jobs-admin 0.8.0 doesn't work in Ubuntu 13.10 :( –  mehaase Feb 18 at 22:07
add comment

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 '13 at 1:32
    
Which is why chkconfig was dropped. –  K7AAY Oct 16 '13 at 20:41
add comment

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 '13 at 8:57
    
upstart.ubuntu.com/cookbook has many many examples of upstart use, which can help greatly if the examples at upstart.ubuntu.com/getting-started.html do not suffice. –  K7AAY Oct 16 '13 at 20:42
add comment

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.