Chkconfig

From Wsms

Jump to: navigation, search

Note: This page should be titled chkconfig (all lowercase). It is Chkconfig due to technical limitations of Mediawiki.

chkconifg is the Redhat utility for manging the initscripts in /etc/init.d. It also applies to Fedora and CentOS.

common usage

Make ntpd startup at the default runlevels.

[root@arthur ~]# chkconfig ntpd on
[root@arthur ~]# chkconfig ntpd --list
ntpd            0:off   1:off   2:off   3:on    4:off   5:on    6:off

Note that this doesn't actually start ntpd until you change to the specified run level, for instance by doing a reboot. You can manually start the service with:

[root@arthur ~]# service ntpd start

see also

Update-rc.d The Debian eqivalent

Personal tools