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-- |
1781 | 1 |
.. -*- coding: utf-8; -*- |
2 |
.. include:: HEADER.rst |
|
0 | 3 |
|
1781 | 4 |
======= |
5 |
init. |
|
6 |
======= |
|
7 |
.. contents:: |
|
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). |