Re: quickly setting /etc/rc levels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 4/11/2012 11:34 AM, John Doe wrote:
> From: aurfalien <aurfalien@xxxxxxxxx>
>
>> I vaguely recall being able to auto set various /etc/rc levels based on 
>> /etc/init.d/scriptname.
>> I am about to create the sym links by hand but wondering if any one has a 
>> shortcut to auto set the links?
> chkconfig?

And the init scripts can have a header in them giving the default
settings for chkconfig.  It looks like this:

# chkconfig: 2345 55 25

This line (taken from sshd) says that this service should run in run
levels 2, 3, 4, and 5 with a start priority of 55 and a stop priority of 25.

If the service doesn't have any links in the rc*.d directories yet,
'chkconfig --add svcname' will create the start and stop links based on
the chkconfig line in the script file.

-- 
Bowie
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux