Difference between revisions of "Linux startup scripts"

From Tom's notes
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 -...")
 
Line 3: Line 3:
 
<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>
  

Revision as of 14:50, 21 April 2016

Centos

See what's defined in the startup levels:

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>]