June 2017
Intermediate to advanced
478 pages
13h 14m
English
You can interact with the scripts in /etc/init.d by calling them directly. Here is an example using the syslog script, which controls the syslogd and klogd daemons:
# /etc/init.d/syslog --help Usage: syslog { start | stop | restart } # /etc/init.d/syslog stop Stopping syslogd/klogd: stopped syslogd (pid 198) stopped klogd (pid 201) done # /etc/init.d/syslog start Starting syslogd/klogd: done
All scripts implement start and stop, and they should also implement help. Some implement status as well, which will tell you whether the service is running or not. Mainstream distributions that still use System V init have a command named service to start and stop services, which hide the details of calling the scripts ...
Read now
Unlock full access