Init - SysV init Script

> Operating System - Kernel (Windows, Unix, Linux) > Linux / Unix > Linux - Boot (Init service system)

1 - About

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

Advertising

3 - Management

3.1 - Development

3.2 - Location

3.3 - 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
Advertising
os/linux/init/script.txt · Last modified: 2018/09/16 12:42 by gerardnico