From c550619429671a01f61524273a1a79a110b843a3 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 31 Jul 2006 18:56:31 +0000 Subject: LSB updates from Ressu (should resolve ticket #81) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2017 ce84e21b-d406-0410-9b95-82705330c041 --- debian/bcfg2.init | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'debian/bcfg2.init') diff --git a/debian/bcfg2.init b/debian/bcfg2.init index 8da1209d4..e7466f18d 100644 --- a/debian/bcfg2.init +++ b/debian/bcfg2.init @@ -40,15 +40,16 @@ test -x $BCFG2 || exit 5 case "$1" in start) - log_begin_msg "Running configuration management client" - if test -e /etc/donttouchme; then - rm -f /etc/donttouchme - log_success_msg "bcfg2 does not need to run." + echo -n "Running configuration management client: " + ${BCFG2} ${BCFG2_OPTIONS} + STATUS=$? + if [ "$STATUS" = 0 ] + then + log_success_msg "bcfg2" else - log_progress_msg "bcfg2" - /usr/sbin/bcfg2 $BCFG2_OPTIONS - log_end_msg $? + log_failure_msg "bcfg2" fi + exit $STATUS ;; restart) $0 stop @@ -62,7 +63,7 @@ case "$1" in true ;; *) - log_success_msg "Usage: $0 {start|stop|restart|force-reload|status}" + echo "Usage: $0 {start|stop|restart|force-reload|status}" exit 1 esac -- cgit v1.2.3-1-g7c22