Browse Source

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

ksh93 script cannot have 'stop' functions w/o cancelling
existing definition first. Fixed.
Jingjing Duan 11 years ago
parent
commit
3523bea8cb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      solaris/quagga.init.in

+ 2 - 2
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
 	;;
 
 *)