Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install chkconfig on Ubuntu?

Tags:

linux

ubuntu

I am running Ubuntu 13.10, and I'm pretty new to Linux. I tried:

$ sudo apt-get install chkconfig 

Package chkconfig is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'chkconfig' has no installation candidate

I manually downloaded the package and unzipped it. The resulting folder has a file called:

chkconfig.install 

But how do I run this? I tried this, but it didn't work.

$ sudo chkconfig.install 
like image 631
user1960836 Avatar asked Dec 19 '13 11:12

user1960836


People also ask

What is the Chkconfig command in Ubuntu?

chkconfig command is used to list all available services and view or update their run level settings. In simple words it is used to list current startup information of services or any particular service, updating runlevel settings of service and adding or removing service from management.

What command replaces Chkconfig?

It initializes the system and launches all the services that were once started by the traditional init process. Managing system services: For RHEL 7, the systemctl command replaces service and chkconfig.


1 Answers

The command chkconfig is no longer available in Ubuntu.The equivalent command to chkconfig is update-rc.d.This command nearly supports all the new versions of ubuntu.

The similar commands are

update-rc.d <service> defaults  update-rc.d <service> start 20 3 4 5  update-rc.d -f <service>  remove 
like image 146
Jerry Avatar answered Sep 29 '22 20:09

Jerry