summaryrefslogtreecommitdiff
path: root/package/miredo
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2014-05-03 22:02:33 +0000
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-04 01:21:46 +0200
commitd74318f9694b7b852fc3189fff3866408fc0ccd0 (patch)
tree1c597d872fdb79c02bbb1c37ca3c949ffb8056ad /package/miredo
parent1eb27178b7018e3be77d69a280c52321ff560846 (diff)
automatic dæmonising of services
Diffstat (limited to 'package/miredo')
-rw-r--r--package/miredo/files/miredo-server.init1
-rw-r--r--package/miredo/files/miredo.init1
2 files changed, 2 insertions, 0 deletions
diff --git a/package/miredo/files/miredo-server.init b/package/miredo/files/miredo-server.init
index 09076ed43..03fccdee3 100644
--- a/package/miredo/files/miredo-server.init
+++ b/package/miredo/files/miredo-server.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${miredo-server:-NO}" = x"NO" && exit 0
+ test x"$miredo-server" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/miredo/files/miredo.init b/package/miredo/files/miredo.init
index 39f53ecde..8d83a215a 100644
--- a/package/miredo/files/miredo.init
+++ b/package/miredo/files/miredo.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${miredo:-NO}" = x"NO" && exit 0
+ test x"$miredo" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)