init.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:41:52 +0200
changeset 1903 901e7394849f
parent 1781 d3fbdf9fd43f
child 1905 fba288d59662
permissions -rw-r--r--
Decrease intent to increase space usage on mobile.
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; -*-
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     2
.. include:: HEADER.rst
0
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
1781
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     4
=======
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     5
 init.
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     6
=======
d3fbdf9fd43f Managing services.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     7
.. contents::
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).