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-- |
1781 | 1 |
.. -*- coding: utf-8; -*- |
0 | 2 |
|
1781 | 3 |
======= |
4 |
init. |
|
5 |
======= |
|
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 | 9 |
rc.d script. |
10 |
============ |
|
11 |
||
12 |
SysV type. |
|
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 | 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 | 18 |
Here symlink to /etc/init.d/ scripts. <N> - runlevel, <NN> - |
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 | 24 |
Managing services. |
25 |
================== |
|
26 |
:: |
|
369
26423d889039
SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
27 |
|
1781 | 28 |
$ sudo service start $NAME |
29 |
$ sudo service stop $NAME |
|
30 |
$ sudo service restart $NAME |
|
31 |
$ sudo service force-reload $NAME |
|
369
26423d889039
SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
32 |
|
1781 | 33 |
How manage runlevel for startup script. |
34 |
======================================= |
|
0 | 35 |
|
1781 | 36 |
For Debian preferred package is sysvconfig(8). |
0 | 37 |
|
38 |
See also bum(8) or update-rc.d(8) or sysv-rc-conf(8). |