[trivia] work around ksh93 builtin name (#451)

ksh93 script cannot have 'stop' functions w/o cancelling
existing definition first. Fixed.
This commit is contained in:
Jingjing Duan 2009-06-23 17:28:23 +04:00 committed by Denis Ovsienko
parent 774eb1524c
commit 3523bea8cb

View File

@ -281,7 +281,7 @@ start () {
eval exec $DAEMON_PATH/$DAEMON $DAEMON_ARGS --pid_file ${PIDFILE} &
}
stop () {
stop_by_pidfile () {
if [ -f "${PIDFILE}" ]; then
/usr/bin/kill -TERM `/usr/bin/cat "${PIDFILE}"`
fi
@ -292,7 +292,7 @@ case "$QUAGGA_METHOD" in
start
;;
'stop')
stop
stop_by_pidfile
;;
*)