rc.d.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 19 Oct 2015 17:04:52 +0300
changeset 1769 cadd23f8127f
parent 899 7b4265c8d324
permissions -rw-r--r--
http://benchmarksgame.alioth.debian.org/

-*- mode: outline; coding: utf-8; -*-

* rc.d script.

** SysV type.

  /etc/init.d/*
                Here scripts.
  /etc/rc<N>.d/[SK]<NN>name
                Here symlink to /etc/init.d/ scripts. <N> - runlevel, <NN> -
                start order from low to high, with K run stop, with S run start.

** Disable service.

To disable the service, rename the symbolic link so that its name begins with
a K instead of with an S and its sequence number is 100 minus NN.

** Command for scripts.

  start
  stop
  restart
  force-reload

* How manage runlevel for startup script.

For debian preferred package is sysvconfig(8).

See also bum(8) or update-rc.d(8) or sysv-rc-conf(8).