summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf van der Spek <olafvdspek@gmail.com>2010-08-11 19:13:23 +0000
committerOlaf van der Spek <olafvdspek@gmail.com>2010-08-11 19:13:23 +0000
commita1d7a594b8d2c62b57c51b253f6bb3f4ad70404a (patch)
tree81354259548893a718500f6260d3d05455b6f881
parent86ad57f6f9702a3bff6235d80816ebfab96f11d7 (diff)
downloadlighttpd-a1d7a594b8d2c62b57c51b253f6bb3f4ad70404a.tar.gz
Check syntax on restart
Don't show OK on syntax check
-rw-r--r--debian/lighttpd.init3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/lighttpd.init b/debian/lighttpd.init
index ffc041d..65cfcf1 100644
--- a/debian/lighttpd.init
+++ b/debian/lighttpd.init
@@ -26,7 +26,7 @@ set -e
check_syntax()
{
- $DAEMON -t $DAEMON_OPTS || exit $?
+ $DAEMON -t $DAEMON_OPTS > /dev/null || exit $?
}
if [ "$1" != status ]; then
@@ -88,6 +88,7 @@ case "$1" in
fi
;;
restart)
+ check_syntax
$0 stop
$0 start
;;