diff options
author | Michal Bialozor <bialyy@o2.pl> | 2013-06-30 20:23:54 -0300 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2013-07-02 16:06:53 -0500 |
commit | 31a515d26779255c3c7a1e2a826db023ef6863f8 (patch) | |
tree | cec67f8243f24126dbb7531e46f8b36401a3f1b6 /network/zabbix_server/rc.zabbix_server | |
parent | 9b5f57e6ae1d68dc9f9c7bd09f8a89d2fa3a33d4 (diff) | |
download | slackbuilds-31a515d26779255c3c7a1e2a826db023ef6863f8.tar.gz |
network/zabbix_server: Updated for version 2.0.6.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'network/zabbix_server/rc.zabbix_server')
-rw-r--r-- | network/zabbix_server/rc.zabbix_server | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/network/zabbix_server/rc.zabbix_server b/network/zabbix_server/rc.zabbix_server index 5a900ca1e8..67a0e64575 100644 --- a/network/zabbix_server/rc.zabbix_server +++ b/network/zabbix_server/rc.zabbix_server @@ -1,6 +1,6 @@ #!/bin/sh -# usage: ./rc.zabbix_server { start | stop | restart } +# Usage: ./rc.zabbix_server {start|stop|restart} PRGNAM=zabbix_server PRGDIR=/usr/sbin/ @@ -10,7 +10,7 @@ DATE=$(date +%a\ %b\ %d\ %T\ %Y) RETVAL=0 prg_start() { - echo -n "Starting $PRGNAM ... " + echo -n "Starting $PRGNAM ... " if [ -r ${PIDDIR}${PRGNAM}.pid ]; then if $(! /sbin/pidof $PRGNAM > /dev/null 2>&1 ) ; then echo "Removing an old ${PIDDIR}${PRGNAM}.pid" @@ -23,15 +23,15 @@ prg_start() { if [ $RETVAL -eq 0 ]; then touch /var/lock/$PRGNAM sleep 2 - echo "Done" + echo "done" else - echo "Failed" + echo "failed" fi return $RETVAL } prg_stop() { - echo -n "Stopping $PRGNAM ... " + echo -n "Stopping $PRGNAM ... " if [ -r ${PIDDIR}${PRGNAM}.pid ]; then killall $PRGNAM # Give it some time to die gracefully @@ -48,7 +48,7 @@ prg_stop() { sleep 10 else echo "$DATE EXIT: $PRGNAM stopped by user: $USER (UID: $EUID)" >> ${LOGDIR}${PRGNAM}.log - echo "Done" + echo "done" fi fi rm -f /var/lock/$PRGNAM @@ -70,8 +70,7 @@ case "$1" in prg_start ;; *) - echo "" - echo "Usage: $(basename $0) {start | stop | restart }" + echo "Usage: $(basename $0) {start|stop|restart }" RETVAL=1 esac |