rc.d.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 20 Jul 2011 10:54:41 +0300
changeset 899 7b4265c8d324
parent 735 5c437e2d5fe1
permissions -rw-r--r--
Set fill-column as directory local var.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
899
7b4265c8d324 Set fill-column as directory local var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 735
diff changeset
     1
-*- mode: outline; coding: utf-8; -*-
0
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
369
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
     3
* rc.d script.
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
     4
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
     5
** SysV type.
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
     6
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
     7
  /etc/init.d/*
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
     8
                Here scripts.
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
     9
  /etc/rc<N>.d/[SK]<NN>name
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    10
                Here symlink to /etc/init.d/ scripts. <N> - runlevel, <NN> -
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    11
                start order from low to high, with K run stop, with S run start.
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    12
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    13
** Disable service.
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
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
    16
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
    17
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    18
** Command for scripts.
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    19
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    20
  start
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    21
  stop
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    22
  restart
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    23
  force-reload
26423d889039 SysV type rc.d script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 0
diff changeset
    24
0
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
* How manage runlevel for startup script.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
For debian preferred package is sysvconfig(8).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
See also bum(8) or update-rc.d(8) or sysv-rc-conf(8).