7 June 2008

Set service to auto start on Red Hat EL

Posted: June 7th, 2008 | Author: Jon | Filed under: Technology | Tags: , , , | No Comments »

To set a service to automatically start at boot time on Red Hat Enterprise Linux (or CentOS) use the following command:

/sbin/chkconfig –level <level> <service> on

<level> is the runlevel, use 3 as it’s the ‘Full multi-user text mode’ runlevel on Red Hat EL/CentOS.
<server> is the name of service, i.e. the script in /etc/init.d/

Or you can use the ncurses-based /sbin/ntsysv utility.


Leave a Reply