From d74318f9694b7b852fc3189fff3866408fc0ccd0 Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Sat, 3 May 2014 22:02:33 +0000 Subject: =?UTF-8?q?automatic=20d=C3=A6monising=20of=20services?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/busybox/files/crond.init | 1 + package/busybox/files/inetd.init | 3 ++- package/busybox/files/ntpd.init | 1 + package/busybox/files/syslogd.init | 1 + package/busybox/files/udhcpd.init | 1 + package/busybox/files/watchdog.init | 1 + 6 files changed, 7 insertions(+), 1 deletion(-) (limited to 'package/busybox/files') 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) -- cgit v1.2.3