chkconfig ` is a simple command-line tool for maintaining the `/etc/rc[0-6].d
directory hierarchy. This tool relieves system administrators from the task of directly manipulating numerous symbolic links in those directories. The Linux chkconfig
command can be used to manipulate CloudBees CD services running on UNIX platforms.
chkconfig
—updates and queries runlevel information for system services
chkconfig --list [name] chkconfig --add name chkconfig --del name chkconfig [--level levels] name <on|off|reset> chkconfig [--level levels] name
Examples
(list current settings for the local {CD} repository service) /sbin/chkconfig commanderRepository --listcommanderRepository 0:off 1:off 2:off 3:on 4:off 5:on 6:off (disable autostart on reboot)/sbin/chkconfig commanderRepository off/sbin/chkconfig commanderRepository --listcommanderRepository 0:off 1:off 2:off 3:off 4:off 5:off 6:off
For every service, each runlevel has either a “start” script or a “stop” script. When switching runlevels, init will not restart an already-started service and will not re-stop a non-running service.
|