[pkg-lighttpd] r474 - lighttpd/trunk/debian

Olaf van der Spek olafvdspek-guest at alioth.debian.org
Wed Aug 11 19:13:25 UTC 2010


Author: olafvdspek-guest
Date: 2010-08-11 19:13:23 +0000 (Wed, 11 Aug 2010)
New Revision: 474

Modified:
   lighttpd/trunk/debian/lighttpd.init
Log:
Check syntax on restart
Don't show OK on syntax check


Modified: lighttpd/trunk/debian/lighttpd.init
===================================================================
--- lighttpd/trunk/debian/lighttpd.init	2010-08-11 15:40:29 UTC (rev 473)
+++ lighttpd/trunk/debian/lighttpd.init	2010-08-11 19:13:23 UTC (rev 474)
@@ -26,7 +26,7 @@
 
 check_syntax()
 {
-	$DAEMON -t $DAEMON_OPTS || exit $?
+	$DAEMON -t $DAEMON_OPTS > /dev/null || exit $?
 }
 
 if [ "$1" != status ]; then
@@ -88,6 +88,7 @@
         fi
         ;;
     restart)
+	check_syntax
         $0 stop
         $0 start
         ;;




More information about the pkg-lighttpd-maintainers mailing list