Init - SysV init Script


The init script are bash script that are run by the init daemon.



see Init - How to develop a SysV Init Script


See Linux - (init.d|Initialization) Location

start/stop individual daemons

In order to control any of the scripts in init.d manually you have to have root (or sudo) access.

Each script will be run as a command and the structure of the command will look like:

/etc/init.d/command OPTION

Where command is the actual command to run and OPTION can be one of the following:

  • start
  • stop
  • reload
  • restart
  • force-reload

For instance:

  • to stop the web server:
/etc/init.d/httpd stop
/etc/init.d/networking restart


Note that traditional init scripts continue to function on a systemd system.

An init script /etc/rc.d/init.d/foobar is implicitly mapped into a service unit foobar.service during system initialization.

Discover More
Init - How to develop a SysV Init Script

How to develop an init script is the service name. /var/lock/subsys/ contains the lock files created by the init scripts Library: On Redhat, a library /etc/init.d/functions contains the standard...
Linux - (Init|Run) Level

Linux - (Init|Run) Level The scripts running during boot and shut-down depends of a run level. The scripts are found in the directory /etc/rc.d/rc#.d/ where the symbol # represents the . The run...
Linux - (init.d|Initialization) Location

The (init.d|Initialization) directory contains start/stop scripts used during the OS initialization phase. Everything from acpid to x11-common is controlled from this directory. Location Os Tip /etc/rc.d/init.d/...
Linux - Service client

service is the client tool of the sysvinit system. systemctl client service where: - The script must be located in in /etc/init.d The current working directory is set to /. Most environment...
SystemD - Services

This page is service management with the systemd init process. .servicesystemd.service It is designed to replace and be backwards compatible with SysV init scripts. Traditional init scripts continue...

Share this page:
Follow us:
Task Runner