SVN: rc-scripts/trunk/rc.d/init.d/template.init

glen glen at pld-linux.org
Fri Oct 16 10:50:35 CEST 2009


Author: glen
Date: Fri Oct 16 10:50:34 2009
New Revision: 10792

Modified:
   rc-scripts/trunk/rc.d/init.d/template.init
Log:
- stderr redirected anyway, nothing special needed in configtest()

Modified: rc-scripts/trunk/rc.d/init.d/template.init
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/template.init	(original)
+++ rc-scripts/trunk/rc.d/init.d/template.init	Fri Oct 16 10:50:34 2009
@@ -41,7 +41,7 @@
 # must return non-zero if check failed
 # output is discarded if checkconfig is ran without details
 configtest() {
-	/usr/sbin/<service> -t 2>&1
+	/usr/sbin/<service> -t
 	return $?
 }
 
@@ -53,7 +53,7 @@
 		# run config test and display report (status action)
 		show "Checking %s configuration" "<service_name>"; busy
 		local out
-		out=`configtest 2>&1`
+		out=$(configtest 2>&1)
 		RETVAL=$?
 		if [ $RETVAL = 0 ]; then
 			ok


More information about the pld-cvs-commit mailing list