summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-12-06 19:17:50 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-12-06 19:17:50 +0000
commitb4e7d85d3ce3ff9ea1254a055064d58a56d40070 (patch)
tree957ca37c2d7b692c71f33c63c707cfe4e5a8b6ac /debian
parent4fcaf13b9e30ecbd77e6b9429137b6af7f5f7086 (diff)
downloadbcfg2-b4e7d85d3ce3ff9ea1254a055064d58a56d40070.tar.gz
bcfg2-b4e7d85d3ce3ff9ea1254a055064d58a56d40070.tar.bz2
bcfg2-b4e7d85d3ce3ff9ea1254a055064d58a56d40070.zip
Patch for centos4 (from Lance Brown)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2572 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian')
-rw-r--r--debian/buildsys/common/bcfg2-server.init18
1 files changed, 9 insertions, 9 deletions
diff --git a/debian/buildsys/common/bcfg2-server.init b/debian/buildsys/common/bcfg2-server.init
index 512c80637..5ee987b85 100644
--- a/debian/buildsys/common/bcfg2-server.init
+++ b/debian/buildsys/common/bcfg2-server.init
@@ -26,8 +26,8 @@ test -x $DAEMON || exit 5
# Include lsb functions
. /lib/lsb/init-functions
-msg=log_success_msg
-fail=log_failure_msg
+alias l_msg log_success_msg
+alias l_fail log_failure_msg
# Internal variables
BINARY=$(basename $DAEMON)
@@ -39,9 +39,9 @@ case "$1" in
STATUS=$?
if [ "$STATUS" = 0 ]
then
- ${msg} "bcfg2-server"
+ l_msg "bcfg2-server"
else
- ${fail} "bcfg2-server"
+ l_fail "bcfg2-server"
fi
exit $STATUS
;;
@@ -50,10 +50,10 @@ case "$1" in
killproc ${BINARY}
STATUS=$?
if [ "$STATUS" = 0 ]; then
- ${msg} "bcfg2-server"
+ l_msg "bcfg2-server"
exit 0
else
- ${fail} "bcfg2-server"
+ l_fail "bcfg2-server"
fi
exit $STATUS
;;
@@ -72,16 +72,16 @@ case "$1" in
if [ -f $PIDFILE ]; then
if [ -n "$PID" ]; then
- ${fail} "$BINARY dead but pid file exists..."
+ l_fail "$BINARY dead but pid file exists..."
exit 1
fi
fi
- ${fail} "$BINARY is not running"
+ l_fail "$BINARY is not running"
exit 3
;;
*)
- ${msg} "Usage: $0 {start|stop|status|reload|restart|force-reload}"
+ l_msg "Usage: $0 {start|stop|status|reload|restart|force-reload}"
exit 1
;;
esac