From a1d7a594b8d2c62b57c51b253f6bb3f4ad70404a Mon Sep 17 00:00:00 2001 From: Olaf van der Spek Date: Wed, 11 Aug 2010 19:13:23 +0000 Subject: Check syntax on restart Don't show OK on syntax check --- debian/lighttpd.init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ;; -- cgit v1.2.3