init.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:46:36 +0200
changeset 1905 fba288d59662
parent 1781 d3fbdf9fd43f
child 1912 8b81a8f0f692
permissions -rw-r--r--
Include only local subsections into TOC. This prevent duplication of TOC when build single page HTML document. Also this make unnecessary CSS hack to hide document title as top level section.

.. -*- coding: utf-8; -*-
.. include:: HEADER.rst

=======
 init.
=======
.. contents::
   :local:

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.

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.

Managing services.
==================
::

  $ sudo service start $NAME
  $ sudo service stop $NAME
  $ sudo service restart $NAME
  $ sudo service force-reload $NAME

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).