summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-01-10 20:49:58 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-01-10 20:49:58 +0000
commit3cab3bc24a2cff1295eae441c07d650eeb17f31f (patch)
tree3a8fadcdbb075076d17e3790a5566c8b3cb69e09 /debian
parentf452accd981ac988b46036c4f097dec73084e09e (diff)
downloadbcfg2-3cab3bc24a2cff1295eae441c07d650eeb17f31f.tar.gz
bcfg2-3cab3bc24a2cff1295eae441c07d650eeb17f31f.tar.bz2
bcfg2-3cab3bc24a2cff1295eae441c07d650eeb17f31f.zip
Change init script to remove alias (from Ressu)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2641 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian')
-rw-r--r--debian/buildsys/common/bcfg2-server.init17
1 files changed, 7 insertions, 10 deletions
diff --git a/debian/buildsys/common/bcfg2-server.init b/debian/buildsys/common/bcfg2-server.init
index 5aa710699..9ec06ddfd 100644
--- a/debian/buildsys/common/bcfg2-server.init
+++ b/debian/buildsys/common/bcfg2-server.init
@@ -26,9 +26,6 @@ test -x $DAEMON || exit 5
# Include lsb functions
. /lib/lsb/init-functions
-alias l_msg=log_success_msg
-alias l_fail=log_failure_msg
-
# Internal variables
BINARY=$(basename $DAEMON)
@@ -39,9 +36,9 @@ case "$1" in
STATUS=$?
if [ "$STATUS" = 0 ]
then
- l_msg "bcfg2-server"
+ log_success_msg "bcfg2-server"
else
- l_fail "bcfg2-server"
+ log_failure_msg "bcfg2-server"
fi
exit $STATUS
;;
@@ -50,10 +47,10 @@ case "$1" in
killproc ${BINARY}
STATUS=$?
if [ "$STATUS" = 0 ]; then
- l_msg "bcfg2-server"
+ log_success_msg "bcfg2-server"
exit 0
else
- l_fail "bcfg2-server"
+ log_failure_msg "bcfg2-server"
fi
exit $STATUS
;;
@@ -72,16 +69,16 @@ case "$1" in
if [ -f $PIDFILE ]; then
if [ -n "$PID" ]; then
- l_fail "$BINARY dead but pid file exists..."
+ log_failure_msg "$BINARY dead but pid file exists..."
exit 1
fi
fi
- l_fail "$BINARY is not running"
+ log_failure_msg "$BINARY is not running"
exit 3
;;
*)
- l_msg "Usage: $0 {start|stop|status|reload|restart|force-reload}"
+ log_success_msg "Usage: $0 {start|stop|status|reload|restart|force-reload}"
exit 1
;;
esac