summaryrefslogtreecommitdiff
path: root/docs/running-openadk.txt
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 /docs/running-openadk.txt
parent1eb27178b7018e3be77d69a280c52321ff560846 (diff)
automatic dæmonising of services
Diffstat (limited to 'docs/running-openadk.txt')
-rw-r--r--docs/running-openadk.txt6
1 files changed, 4 insertions, 2 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)