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

glen glen at pld-linux.org
Sat Jul 25 21:29:56 CEST 2009


Author: glen
Date: Sat Jul 25 21:29:56 2009
New Revision: 10426

Modified:
   rc-scripts/trunk/rc.d/init.d/template.init
Log:
- improved configtest output sequence

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	Sat Jul 25 21:29:56 2009
@@ -56,8 +56,15 @@
 	if [ $details = 1 ]; then
 		# run config test and display report (status action)
 		show "Checking %s configuration" "<service_name>"; busy; echo
-		configtest
+		local out
+		out=`configtest 2>&1`
 		RETVAL=$?
+		if [ $RETVAL = 0 ]; then
+			ok
+		else
+			fail
+			echo >&2 "$out"
+		fi
 	else
 		# run config test and abort with nice message if failed
 		# (for actions checking status before action).


More information about the pld-cvs-commit mailing list