aboutsummaryrefslogtreecommitdiffstats
path: root/testing/runit/runit.initd
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2015-07-15 16:53:21 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-07-16 13:34:34 +0000
commit71d213b231cfbb03b854d7d900d1e75402f90f73 (patch)
tree91cea9907cb3fa453f333e47e23fbdfd24a9efe8 /testing/runit/runit.initd
parentccc51392cde19e7d5193219f2e376d4dd43f1672 (diff)
downloadaports-71d213b231cfbb03b854d7d900d1e75402f90f73.tar.gz
aports-71d213b231cfbb03b854d7d900d1e75402f90f73.tar.bz2
aports-71d213b231cfbb03b854d7d900d1e75402f90f73.tar.xz
testing/runit: add init script & README.alpine
this makes runit a bit simpler to use. It is great in LXC.
Diffstat (limited to 'testing/runit/runit.initd')
-rw-r--r--testing/runit/runit.initd12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/runit/runit.initd b/testing/runit/runit.initd
new file mode 100644
index 0000000000..59fd4a4c9b
--- /dev/null
+++ b/testing/runit/runit.initd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+
+command="/sbin/runsvdir"
+command_args="/etc/service"
+pidfile="/run/${SVCNAME}.pid"
+command_background="true"
+description="starts and monitors a collection of runsv(8) processes"
+retry="SIGHUP/5"
+
+depend() {
+ need localmount
+}