mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 00:56:19 +00:00
[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:
parent
774eb1524c
commit
3523bea8cb
@ -281,7 +281,7 @@ start () {
|
|||||||
eval exec $DAEMON_PATH/$DAEMON $DAEMON_ARGS --pid_file ${PIDFILE} &
|
eval exec $DAEMON_PATH/$DAEMON $DAEMON_ARGS --pid_file ${PIDFILE} &
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop_by_pidfile () {
|
||||||
if [ -f "${PIDFILE}" ]; then
|
if [ -f "${PIDFILE}" ]; then
|
||||||
/usr/bin/kill -TERM `/usr/bin/cat "${PIDFILE}"`
|
/usr/bin/kill -TERM `/usr/bin/cat "${PIDFILE}"`
|
||||||
fi
|
fi
|
||||||
@ -292,7 +292,7 @@ case "$QUAGGA_METHOD" in
|
|||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
'stop')
|
'stop')
|
||||||
stop
|
stop_by_pidfile
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user