Thursday, August 5, 2010

Linux runlevel configuration - start services on boot for Red Hat and Ubuntu

To configure runlevels on Ubuntu use the 'update-rc.d' tool. For example to ensure the '/etc/init.d/blah' script gets started and stopped in the normal runlevels, use:
sudo update-rc.d blah defaults
The equivalent tool on Red Hat is 'chkconfig', use:
sudo chkconfig blah on

No comments: