summaryrefslogtreecommitdiff
path: root/local.d
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-01-06 12:13:33 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-01-20 12:50:29 -0600
commit10ce67886d214850feaf60d6945fe2568da6ef84 (patch)
treeb12c56d9ac682cf13e42f5d9ba668473929cbe04 /local.d
parenteebb2d1b9cf0da22ed654ca7ac97a0ae845802ba (diff)
downloadopenrc-10ce67886d214850feaf60d6945fe2568da6ef84.tar.gz
openrc-10ce67886d214850feaf60d6945fe2568da6ef84.tar.bz2
openrc-10ce67886d214850feaf60d6945fe2568da6ef84.tar.xz
change local to run programs
This changes the local service so that it will run programs located in @sysconfdir@/local.d instead of the local_start and local_stop functions from @sysconfdir@/conf.d/local. The advantage for the user is that these programs are not part of the openrc package, so the user does not have to worry about them being overwritten when openrc is upgraded. X-Gentoo-Bug: 351465 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=351465
Diffstat (limited to 'local.d')
-rw-r--r--local.d/Makefile6
-rw-r--r--local.d/README9
2 files changed, 15 insertions, 0 deletions
diff --git a/local.d/Makefile b/local.d/Makefile
new file mode 100644
index 0000000..7a7d31d
--- /dev/null
+++ b/local.d/Makefile
@@ -0,0 +1,6 @@
+DIR= ${LOCALDIR}
+CONF= README
+
+MK= ../mk
+include ${MK}/os.mk
+include ${MK}/scripts.mk
diff --git a/local.d/README b/local.d/README
new file mode 100644
index 0000000..d3c1156
--- /dev/null
+++ b/local.d/README
@@ -0,0 +1,9 @@
+This directory should contain programs or scripts which are to be run
+when the local service is started or stopped.
+
+If a file in this directory is executable and it has a .start extension,
+it will be run when the local service is started. If a file is
+executable and it has a .stop extension, it will be run when the local
+service is stopped.
+
+All files are processed in lexical order.