Difference between revisions of "Linux startup scripts"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Created page with "=Centos= See what's defined in the startup levels: <source lang="sh"> chkconfig </source>  =Gentoo= See what's defined in the startup levels: <source lang="sh"> rc-update -s -...")  | 
				 (→Centos)  | 
				||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
=Centos=  | =Centos=  | ||
| − | See what's defined in the startup levels:  | + | See what's defined in the startup levels (SysV):  | 
<source lang="sh">  | <source lang="sh">  | ||
chkconfig  | chkconfig  | ||
| + | </source>  | ||
| + | |||
| + | For systemd services:  | ||
| + | <source lang="sh">  | ||
| + | systemctl list-unit-files  | ||
| + | </source>  | ||
| + | |||
| + | Add a service:  | ||
| + | <source lang="sh">  | ||
| + | systemctl add nagios  | ||
</source>  | </source>  | ||
Latest revision as of 14:08, 21 April 2016
Centos
See what's defined in the startup levels (SysV):
chkconfig
For systemd services:
systemctl list-unit-files
Add a service:
systemctl add nagios
Gentoo
See what's defined in the startup levels:
rc-update -s -v
Modify a service:
rc-update <add|del> <service> [<runlevel>]