]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- do not use daemon() as initlog closes fds=0,1,2 and lighttpd tries to write
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 29 Mar 2007 14:49:34 +0000 (14:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  config *warnings* to closed stderr and aborts()

Changed files:
    lighttpd.init -> 1.12

lighttpd.init

index 216a754ff88346742eb225db4a11a0c2a9520365..8830f1ba66b67cabe4a82b6e6cad97f95f6b7fd6 100644 (file)
@@ -38,9 +38,14 @@ configtest() {
 }
 
 start() {
-       daemon env SHELL=/bin/sh lighttpd -f /etc/lighttpd/lighttpd.conf $HTTPD_OPTS
+       env SHELL=/bin/sh lighttpd -f /etc/lighttpd/lighttpd.conf $HTTPD_OPTS
        RETVAL=$?
-       [ $RETVAL -eq 0 ] && touch /var/lock/subsys/lighttpd
+       if [ $RETVAL -eq 0 ]; then
+               ok
+               touch /var/lock/subsys/lighttpd
+       else
+               fail
+       fi
        return $RETVAL
 }
 
This page took 0.057646 seconds and 4 git commands to generate.