diff options
117 files changed, 124 insertions, 6 deletions
diff --git a/docs/running-openadk.txt b/docs/running-openadk.txt index c4ae0fa72..7f33f1cd1 100644 --- a/docs/running-openadk.txt +++ b/docs/running-openadk.txt @@ -88,8 +88,9 @@ The /etc/init.d/rcS script will execute all shell scripts in /etc/init.d in order with the parameter +autostart+. The order is identified by the +#INIT+ comment in the script. All scripts are sourcing the +/etc/rc.conf+ file to determine if a service should be started on boot and which flags if any are -used for the service. By default all services except syslog and ssh are -disabled. Most scripts provided by OpenADK via +used for the service. By default all services are disabled. If the variable +for a service is set to "DAEMON" and mksh is installed, the service starts +asynchronously in the background. Most scripts provided by OpenADK via +package/<pkgname>/files/<pkgname>.init+ are like: --------------------- @@ -103,6 +104,7 @@ case $1 in autostop) ;; autostart) test x"${foo:-NO}" = x"NO" && exit 0 + test x"$foo" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start exec sh $0 start ;; start) diff --git a/package/adk-test-tools/files/test.init b/package/adk-test-tools/files/test.init index 9812c86df..203a8c973 100755 --- a/package/adk-test-tools/files/test.init +++ b/package/adk-test-tools/files/test.init @@ -7,6 +7,7 @@ case $1 in autostop) ;; autostart) test x"${test:-NO}" = x"NO" && exit 0 + test x"$test" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start exec sh $0 start ;; start) diff --git a/package/aiccu/files/aiccu.init b/package/aiccu/files/aiccu.init index dbec044a4..c3d3d5b4b 100644 --- a/package/aiccu/files/aiccu.init +++ b/package/aiccu/files/aiccu.init @@ -7,6 +7,7 @@ case $1 in autostop) ;; autostart) test x"${aiccu:-NO}" = x"NO" && exit 0 + test x"$aiccu" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start exec sh $0 start ;; start) diff --git a/package/alix-switch/files/alix-switch.init b/package/alix-switch/files/alix-switch.init index adb6e9230..59433e773 100644 --- a/package/alix-switch/files/alix-switch.init +++ b/package/alix-switch/files/alix-switch.init @@ -8,6 +8,7 @@ case $1 in autostop) ;; autostart) test x"${alix_switch:-NO}" = x"NO" && exit 0 + test x"$alix_switch" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start exec sh $0 start ;; start) diff --git a/package/alsa-utils/files/amixer.init b/package/alsa-utils/files/amixer.init index f5c21b8c3..5d86d5875 100644 --- a/package/alsa-utils/files/amixer.init +++ b/package/alsa-utils/files/amixer.init @@ -7,6 +7,7 @@ case $1 in autostop) ;; autostart) test x"${amixer:-NO}" = x"NO" && exit 0 + test x"$amixer" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start exec sh $0 start ;; start) diff --git a/package/asterisk/files/asterisk.init b/package/asterisk/files/asterisk.init index d11a1f1b1..d43c5defe 100644 --- a/package/asterisk/files/asterisk.init +++ b/package/asterisk/files/asterisk.init @@ -7,6 +7,7 @@ case $1 in autostop) ;; autostart) test x"${asterisk:-NO}" = x"NO" && exit 0 + test x"$asterisk" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start exec sh $0 start ;; start) diff --git a/package/avahi/files/avahi-daemon.init b/package/avahi/files/avahi-daemon.init index 660d713e9..ca78aa486 100644 --- a/package/avahi/files/avahi-daemon.init +++ b/package/avahi/files/avahi-daemon.init @@ -7,6 +7,7 @@ case $1 in autostop) ;; autostart) test x"${avahi:-NO}" = x"NO" && exit 0 + test x"$avahi" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start exec sh $0 start ;; start) diff --git a/package/axtls/files/axhttpd.init b/package/axtls/files/axhttpd.init index fd662f132..6991a0be4 100644 --- a/package/axtls/files/axhttpd.init +++ b/package/axtls/files/axhttpd.init @@ -7,6 +7,7 @@ case $1 in autostop) ;; autostart) test x"${axhttpd:-NO}" = x"NO" && exit 0 + test x"$axhttpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start exec sh $0 start ;; start) diff --git a/package/bind/files/named.init b/package/bind/files/named.init index c3ad09d85..e853202b4 100644 --- a/package/bind/files/named.init +++ b/package/bind/files/named.init @@ -7,6 +7,7 @@ case $1 in autostop) ;; autostart) test x"${named:-NO}" = x"NO" && exit 0 + test x"$named" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start exec sh $0 start ;; start) diff --git a/package/bitlbee/files/bitlbee.init b/package/bitlbee/files/bitlbee.init index f4bb4e1c9..ea72fd15e 100644 --- a/package/bitlbee/files/bitlbee.init +++ b/package/bitlbee/files/bitlbee.init @@ -7,6 +7,7 @@ case $1 in autostop) ;; autostart) test x"${bitlbee:-NO}" = x"NO" && exit 0 + test x"$bitlbee" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start exec sh $0 start ;; start) |