summaryrefslogtreecommitdiffstats
path: root/solaris
diff options
context:
space:
mode:
authorJingjing Duan <jingjing.duan@sun.com>2009-06-23 15:28:23 +0200
committerDenis Ovsienko <pilot@etcnet.org>2009-06-23 15:28:23 +0200
commit3523bea8cbe98c83e3d1bdeb60180c8e59622773 (patch)
tree5e869ae87daaee6e55c0e22f7822a3c0af4bdd14 /solaris
parent[ospfd] cancel OSPF timer hack in nsm_change_state (diff)
downloadfrr-3523bea8cbe98c83e3d1bdeb60180c8e59622773.tar.xz
frr-3523bea8cbe98c83e3d1bdeb60180c8e59622773.zip
[trivia] work around ksh93 builtin name (#451)
ksh93 script cannot have 'stop' functions w/o cancelling existing definition first. Fixed.
Diffstat (limited to 'solaris')
-rwxr-xr-xsolaris/quagga.init.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/solaris/quagga.init.in b/solaris/quagga.init.in
index 8b298c37e..8457e9903 100755
--- a/solaris/quagga.init.in
+++ b/solaris/quagga.init.in
@@ -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
;;
*)