summaryrefslogtreecommitdiffstats
path: root/tools/bcfg2-cron
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-07-14 19:20:26 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-07-14 19:20:26 +0000
commita2e7a9ac382be2fcad943b404d04be870aa7291e (patch)
tree0d2a59982481036ee5bd7ff37ef63d10633bb2c0 /tools/bcfg2-cron
parent9949402e118fc3535c29819b48aa2686797809b2 (diff)
downloadbcfg2-a2e7a9ac382be2fcad943b404d04be870aa7291e.tar.gz
bcfg2-a2e7a9ac382be2fcad943b404d04be870aa7291e.tar.bz2
bcfg2-a2e7a9ac382be2fcad943b404d04be870aa7291e.zip
bcfg2-cron: perform existence checks after reading /etc/{sysconfig,default}/bcfg2
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4783 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'tools/bcfg2-cron')
-rwxr-xr-xtools/bcfg2-cron6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/bcfg2-cron b/tools/bcfg2-cron
index cba5f4de1..fe0e6e90d 100755
--- a/tools/bcfg2-cron
+++ b/tools/bcfg2-cron
@@ -21,12 +21,12 @@ BCFG2_OPTIONS="-q"
BCFG2_BIN=/usr/sbin/bcfg2
BCFG2_CFG=/etc/bcfg2.conf
-# Check that configuration and executable exists
-[ -x ${BCFG2_BIN} -a -e ${BCFG2_CFG} ] || exit 1
-
# Read the configuration from /etc/default/bcfg2
[ -e /etc/default/bcfg2 ] && . /etc/default/bcfg2
+# Check that configuration and executable exists
+[ -x ${BCFG2_BIN} -a -e ${BCFG2_CFG} ] || exit 1
+
invoke_bcfg2 () {
# Invoke bcfg2 if enabled
if [ ${BCFG2_ENABLED} -eq 1 ]; then