SVN: rc-scripts/trunk/rc.d/init.d/template.init
glen
glen at pld-linux.org
Mon Apr 5 21:13:19 CEST 2010
Author: glen
Date: Mon Apr 5 21:13:19 2010
New Revision: 11308
Modified:
rc-scripts/trunk/rc.d/init.d/template.init
Log:
- no need to load service config to check network state
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 Mon Apr 5 21:13:19 2010
@@ -18,15 +18,6 @@
# Get network config
. /etc/sysconfig/network
-# Set defaults
-OPTION1="" # Strings
-OPTION2="-q" #
-OPTION3= # Values
-OPTION4=5 #
-
-# Get service config - may override defaults
-[ -f /etc/sysconfig/<service> ] && . /etc/sysconfig/<service>
-
# Check that networking is up.
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
@@ -37,6 +28,15 @@
exit 0
fi
+# Set defaults
+OPTION1="" # Strings
+OPTION2="-q" #
+OPTION3= # Values
+OPTION4=5 #
+
+# Get service config - may override defaults
+[ -f /etc/sysconfig/<service> ] && . /etc/sysconfig/<service>
+
# configtest itself
# must return non-zero if check failed
# output is discarded if checkconfig is ran without details
More information about the pld-cvs-commit
mailing list