aboutsummaryrefslogtreecommitdiff
path: root/sh/openrc-run.sh.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-05-11 18:07:28 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-05-11 18:36:49 -0500
commitbb2d7becfd3008379f8f69b5d036922281aa211f (patch)
treee7eedb5430c84119dded882f8398d39b301c25e6 /sh/openrc-run.sh.in
parent0f9354becfbd54f9800c93092aa26be859dcf16a (diff)
Add support for the s6 supervision suite
Diffstat (limited to 'sh/openrc-run.sh.in')
-rw-r--r--sh/openrc-run.sh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/sh/openrc-run.sh.in b/sh/openrc-run.sh.in
index 67e47b75..33dc59c5 100644
--- a/sh/openrc-run.sh.in
+++ b/sh/openrc-run.sh.in
@@ -132,6 +132,7 @@ start()
{
local func=ssd_start
case "$supervisor" in
+ s6) func=s6_start ;;
?*)
ewarn "Invalid supervisor, \"$supervisor\", using start-stop-daemon"
;;
@@ -143,6 +144,7 @@ stop()
{
local func=ssd_stop
case "$supervisor" in
+ s6) func=s6_stop ;;
?*)
ewarn "Invalid supervisor, \"$supervisor\", using start-stop-daemon"
;;
@@ -154,6 +156,7 @@ status()
{
local func=ssd_status
case "$supervisor" in
+ s6) func=s6_status ;;
?*)
ewarn "Invalid supervisor, \"$supervisor\", using start-stop-daemon"
;;
@@ -183,6 +186,7 @@ unset _conf_d
sourcex -e "@SYSCONFDIR@/rc.conf"
# load service supervisor functions
+sourcex "@LIBEXECDIR@/sh/s6.sh"
sourcex "@LIBEXECDIR@/sh/start-stop-daemon.sh"
# Set verbose mode