summaryrefslogtreecommitdiff
path: root/community/quagga/quagga.rc
diff options
context:
space:
mode:
Diffstat (limited to 'community/quagga/quagga.rc')
-rw-r--r--community/quagga/quagga.rc13
1 files changed, 6 insertions, 7 deletions
diff --git a/community/quagga/quagga.rc b/community/quagga/quagga.rc
index f938c6f8a..ad6614b14 100644
--- a/community/quagga/quagga.rc
+++ b/community/quagga/quagga.rc
@@ -4,19 +4,18 @@
. /etc/rc.d/functions
. /etc/conf.d/${0##*/}
-NAME=${0##*/}
-DAEMON=/usr/sbin/$NAME
+DAEMON=/usr/sbin/${0##*/}
PID=$(pidof -o %PPID $DAEMON)
case "$1" in
start)
- stat_busy "Starting Quagga $NAME daemon"
- [[ ! $PID ]] && $DAEMON $DAEMON_OPTS && add_daemon $NAME && stat_done && exit 0
+ stat_busy "Starting ${0##*/} daemon"
+ [[ ! $PID ]] && $DAEMON $DAEMON_OPTS && add_daemon ${0##*/} && stat_done && exit 0
stat_fail
;;
stop)
- stat_busy "Stopping $NAME daemon"
- [[ $PID ]] && kill $PID &> /dev/null && rm_daemon $NAME && stat_done && exit 0
+ stat_busy "Stopping ${0##*/} daemon"
+ [[ $PID ]] && kill $PID &> /dev/null && rm_daemon ${0##*/} && stat_done && exit 0
stat_fail
;;
restart)
@@ -24,7 +23,7 @@ case "$1" in
$0 start
exit 0
;;
- *)
+ *)
echo "usage: ${0##*/} {start|stop|restart}" >&2
;;
esac