init.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 10 Feb 2018 01:28:53 +0200
changeset 2227 1e9323e7ec88
parent 1912 8b81a8f0f692
child 2228 837f1337c59b
permissions -rw-r--r--
Removed files: I don't longer have interest on topic.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1781
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     1
.. -*- coding: utf-8; -*-
0
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
1781
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     3
=======
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     4
 init.
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     5
=======
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     6
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1781
diff changeset
     7
   :local:
369
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
     8
1781
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     9
rc.d script.
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    10
============
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    11
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    12
SysV type.
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    13
==========
369
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    14
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    15
  /etc/init.d/*
1781
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    16
    Here scripts.
369
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    17
  /etc/rc<N>.d/[SK]<NN>name
1781
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    18
    Here symlink to /etc/init.d/ scripts. <N> - runlevel, <NN> -
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    19
    start order from low to high, with K run stop, with S run start.
369
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    20
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    21
To disable the service, rename the symbolic link so that its name begins with
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    22
a K instead of with an S and its sequence number is 100 minus NN.
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    23
1781
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    24
Managing services.
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    25
==================
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    26
::
369
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    27
1781
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    28
  $ sudo service start $NAME
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    29
  $ sudo service stop $NAME
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    30
  $ sudo service restart $NAME
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    31
  $ sudo service force-reload $NAME
369
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    32
1781
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    33
How manage runlevel for startup script.
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    34
=======================================
0
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    35
1781
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    36
For Debian preferred package is sysvconfig(8).
0
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    37
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    38
See also bum(8) or update-rc.d(8) or sysv-rc-conf(8).