SOURCES (AC-branch): exim.init - patch from Paweł Kwiatkowski (no...

glen glen at pld-linux.org
Fri Nov 30 10:49:21 CET 2007


Author: glen                         Date: Fri Nov 30 09:49:21 2007 GMT
Module: SOURCES                       Tag: AC-branch
---- Log message:
- patch from Paweł Kwiatkowski (not tested)

---- Files affected:
SOURCES:
   exim.init (1.19 -> 1.19.2.1) 

---- Diffs:

================================================================
Index: SOURCES/exim.init
diff -u SOURCES/exim.init:1.19 SOURCES/exim.init:1.19.2.1
--- SOURCES/exim.init:1.19	Thu Dec  8 02:02:49 2005
+++ SOURCES/exim.init	Fri Nov 30 10:49:15 2007
@@ -74,18 +74,25 @@
 	status exim
 	exit $?
 	;;
+  configtest)
+	exim -bV || exit $?
+	;;
+
   reload|force-reload)
 	if [ -f /var/lock/subsys/exim ]; then
-		msg_reloading Exim
-		killproc exim -HUP
-		RETVAL=$?
+		run_cmd "Checking exim configuration" exim -bV
+		if [ $? -eq 0 ]; then
+			msg_reloading Exim
+			killproc exim -HUP
+			RETVAL=$?
+		fi
 	else
 		msg_not_running Exim >&2
 		exit 7
 	fi
 	;;
   *)
-	msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+	msg_usage "$0 {start|stop|restart|reload|force-reload|configtest|status}"
 	exit 3
 esac
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/exim.init?r1=1.19&r2=1.19.2.1&f=u



More information about the pld-cvs-commit mailing list