# HG changeset patch # User Oleksandr Gavenko # Date 1448354060 -7200 # Node ID d3fbdf9fd43f755200fa941070981fe4185e7a3e # Parent a77c7517ab90011befa523ffd98cde9bdd211ec3 Managing services. diff -r a77c7517ab90 -r d3fbdf9fd43f init.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init.rst Tue Nov 24 10:34:20 2015 +0200 @@ -0,0 +1,38 @@ +.. -*- coding: utf-8; -*- +.. include:: HEADER.rst + +======= + init. +======= +.. contents:: + +rc.d script. +============ + +SysV type. +========== + + /etc/init.d/* + Here scripts. + /etc/rc.d/[SK]name + Here symlink to /etc/init.d/ scripts. - runlevel, - + start order from low to high, with K run stop, with S run start. + +To disable the service, rename the symbolic link so that its name begins with +a K instead of with an S and its sequence number is 100 minus NN. + +Managing services. +================== +:: + + $ sudo service start $NAME + $ sudo service stop $NAME + $ sudo service restart $NAME + $ sudo service force-reload $NAME + +How manage runlevel for startup script. +======================================= + +For Debian preferred package is sysvconfig(8). + +See also bum(8) or update-rc.d(8) or sysv-rc-conf(8). diff -r a77c7517ab90 -r d3fbdf9fd43f rc.d.rst --- a/rc.d.rst Sat Oct 31 13:54:03 2015 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ --*- mode: outline; coding: utf-8; -*- - -* rc.d script. - -** SysV type. - - /etc/init.d/* - Here scripts. - /etc/rc.d/[SK]name - Here symlink to /etc/init.d/ scripts. - runlevel, - - start order from low to high, with K run stop, with S run start. - -** Disable service. - -To disable the service, rename the symbolic link so that its name begins with -a K instead of with an S and its sequence number is 100 minus NN. - -** Command for scripts. - - start - stop - restart - force-reload - -* How manage runlevel for startup script. - -For debian preferred package is sysvconfig(8). - -See also bum(8) or update-rc.d(8) or sysv-rc-conf(8).