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