summaryrefslogtreecommitdiff
path: root/package/busybox/files
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/busybox/files
parent1eb27178b7018e3be77d69a280c52321ff560846 (diff)
automatic dæmonising of services
Diffstat (limited to 'package/busybox/files')
-rw-r--r--package/busybox/files/crond.init1
-rw-r--r--package/busybox/files/inetd.init3
-rw-r--r--package/busybox/files/ntpd.init1
-rw-r--r--package/busybox/files/syslogd.init1
-rw-r--r--package/busybox/files/udhcpd.init1
-rw-r--r--package/busybox/files/watchdog.init1
6 files changed, 7 insertions, 1 deletions
diff --git a/package/busybox/files/crond.init b/package/busybox/files/crond.init
index ea8faa90a..cc22fe91e 100644
--- a/package/busybox/files/crond.init
+++ b/package/busybox/files/crond.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${crond:-NO}" = x"NO" && exit 0
+ test x"$crond" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/busybox/files/inetd.init b/package/busybox/files/inetd.init
index 142fa6a03..cbdc11f2a 100644
--- a/package/busybox/files/inetd.init
+++ b/package/busybox/files/inetd.init
@@ -4,8 +4,9 @@
. /etc/rc.conf
case $1 in
autostart)
- test x"$inetd" = x"NO" && exit 0
+ test x"${inetd:-NO}" = x"NO" && exit 0
test -e /etc/inetd.conf || exit 0
+ test x"$inetd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/busybox/files/ntpd.init b/package/busybox/files/ntpd.init
index 180f161a7..c79d6c4bd 100644
--- a/package/busybox/files/ntpd.init
+++ b/package/busybox/files/ntpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${ntpd:-NO}" = x"NO" && exit 0
+ test x"$ntpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/busybox/files/syslogd.init b/package/busybox/files/syslogd.init
index 7a85430ca..fb563d808 100644
--- a/package/busybox/files/syslogd.init
+++ b/package/busybox/files/syslogd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${syslogd_flags:-NO}" = x"NO" && exit 0
+ test x"$syslogd_flags" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/busybox/files/udhcpd.init b/package/busybox/files/udhcpd.init
index edec3ac91..3a280c6ed 100644
--- a/package/busybox/files/udhcpd.init
+++ b/package/busybox/files/udhcpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${udhcpd:-NO}" = x"NO" && exit 0
+ test x"$udhcpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/busybox/files/watchdog.init b/package/busybox/files/watchdog.init
index 8632cc36d..d3d0bb3b7 100644
--- a/package/busybox/files/watchdog.init
+++ b/package/busybox/files/watchdog.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${watchdog:-NO}" = x"NO" && exit 0
+ test x"$watchdog" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)