[trivia] work around ksh93 builtin name (#451)
ksh93 script cannot have 'stop' functions w/o cancelling
existing definition first. Fixed.
diff --git a/solaris/quagga.init.in b/solaris/quagga.init.in
index 8b298c3..8457e99 100755
--- a/solaris/quagga.init.in
+++ b/solaris/quagga.init.in
@@ -281,7 +281,7 @@
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 @@
start
;;
'stop')
- stop
+ stop_by_pidfile
;;
*)