SOURCES: syslog-ng.init - let it be simply
blues
blues at pld-linux.org
Thu Nov 29 13:02:39 CET 2007
Author: blues Date: Thu Nov 29 12:02:39 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- let it be simply
---- Files affected:
SOURCES:
syslog-ng.init (1.16 -> 1.17)
---- Diffs:
================================================================
Index: SOURCES/syslog-ng.init
diff -u SOURCES/syslog-ng.init:1.16 SOURCES/syslog-ng.init:1.17
--- SOURCES/syslog-ng.init:1.16 Tue Sep 26 20:44:39 2006
+++ SOURCES/syslog-ng.init Thu Nov 29 13:02:34 2007
@@ -22,7 +22,7 @@
fi
configtest() {
- syslog-ng $OPTIONS -s
+ syslog-ng $OPTIONS -s || exit 1
}
start() {
@@ -57,15 +57,9 @@
stop
;;
restart)
- configtest
- RETVAL=$?
- if [ $RETVAL -eq 0 ]; then
- stop
- start
- else
- fail
- echo >&2 "Configuration file syntax test failed."
- fi
+ configtest
+ stop
+ start
;;
configtest)
configtest
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/syslog-ng.init?r1=1.16&r2=1.17&f=u
More information about the pld-cvs-commit
mailing list