Managing Init Scripts with chkconfig
Tags:
Managing Init Scripts with chkconfig: ---------------------------------------------------------------------------- List all services on at run level 1: # chkconfig --list | grep 1:on ---------------------------------------------------------------------------- Enable a service: # chkconfig cups on ---------------------------------------------------------------------------- Disable a service: # chkconfig cups off ---------------------------------------------------------------------------- Enable a service at run level 2: # chkconfig --level 2 cups on ---------------------------------------------------------------------------- Disable a service at run level 5: # chkconfig --level 5 cups off ---------------------------------------------------------------------------- chkconfig line in init scripts: chkconfig: <run levels to start service> <start script priority> <kill script priority> example: chkconfig: 2345 55 25 ----------------------------------------------------------------------------
»
- Add new comment
- 3939 reads
