chkconfig
Chkconfig is a command line tool used in Unix and Unix-like operating systems. It is used to configure and manage the services running on a system during startup. The tool allows administrators to enable or disable services to start automatically or manually at boot time. It provides a simple way to view, add, remove, or modify services listed in the system initialization scripts. Chkconfig organizes services into different runlevels, which represent different modes of operation for the system. It works by manipulating the symbolic links located in the directories /etc/init.d and /etc/rc.d and updating the runlevel directories. Administrators can use chkconfig to set services to run in specific runlevels or to exclude them from starting altogether. It provides a convenient way to ensure that essential services are automatically started upon booting the system. Chkconfig also allows administrators to manage services across multiple runlevels easily. Overall, it ensures smooth system initialization and simplifies service management for system administrators.
List of commands for chkconfig:
-
chkconfig:tldr:0094b chkconfig: Disable service at boot for runlevel 3.$ chkconfig --level ${3} ${ntpd} offtry on your machineexplain this command
-
chkconfig:tldr:74227 chkconfig: Show a service's runlevel.$ chkconfig --list ${ntpd}try on your machineexplain this command
-
chkconfig:tldr:816c2 chkconfig: Enable service at boot for runlevels 2, 3, 4, and 5.$ chkconfig --level ${2345} ${sshd} ontry on your machineexplain this command
-
chkconfig:tldr:8bb55 chkconfig: Disable service at boot.$ chkconfig ${ntpd} offtry on your machineexplain this command
-
chkconfig:tldr:bd7cf chkconfig: Enable service at boot.$ chkconfig ${sshd} ontry on your machineexplain this command
-
chkconfig:tldr:da8f3 chkconfig: List services with runlevel.$ chkconfig --listtry on your machineexplain this command