Managing init Scripts in Ubuntu 13.04

Normally, I use chkconfig tool in SUSE or RedHat to manage init scripts. This tool is missing in Ubuntu. The alternative is to use the sysv-rc-conf tool.

First, install the tool:

sudo apt-get install sysv-rc-conf

To check the configuration of an init script, such as apache2, run:

sudo sysv-rc-conf --list apache2

To disable a script, such as apache2:

sudo sysv-rc-conf apache2 off

To enable it again:

sudo sysv-rc-conf apache2 on

To create a new script manually, use the same syntax as for chkconfig.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s