diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.rc.md	Tue Feb 26 09:16:42 2019 +0100
@@ -0,0 +1,25 @@
+vanilla init scripts
+====================
+
+If a package provide a init script, it is installed as /etc/rc.d/name where
+name is the canonical package name.
+
+Then enable it in /etc/rc.single or /etc/rc.multi. We recommend checking the
+executable permissions to allow disabling/enabling services without editing
+files.
+
+Example in /etc/rc.multi:
+
+```sh
+if [ -x /etc/rc.d/acpid ]; then
+	/etc/rc.d/acpid start
+fi
+```
+
+Don't forget to shutdown gracefully in /etc/rc.shutdown:
+
+```sh
+if [ -x /etc/rc.d/acpid ]; then
+	/etc/rc.d/acpid stop
+fi
+```