comparison README.rc.md @ 31:afb6f8eb89da

vanilla: add more documentation
author David Demelier <markand@malikania.fr>
date Tue, 26 Feb 2019 09:16:42 +0100
parents
children
comparison
equal deleted inserted replaced
30:345ba1fec137 31:afb6f8eb89da
1 vanilla init scripts
2 ====================
3
4 If a package provide a init script, it is installed as /etc/rc.d/name where
5 name is the canonical package name.
6
7 Then enable it in /etc/rc.single or /etc/rc.multi. We recommend checking the
8 executable permissions to allow disabling/enabling services without editing
9 files.
10
11 Example in /etc/rc.multi:
12
13 ```sh
14 if [ -x /etc/rc.d/acpid ]; then
15 /etc/rc.d/acpid start
16 fi
17 ```
18
19 Don't forget to shutdown gracefully in /etc/rc.shutdown:
20
21 ```sh
22 if [ -x /etc/rc.d/acpid ]; then
23 /etc/rc.d/acpid stop
24 fi
25 ```