From: Jingjing Duan Date: Tue, 23 Jun 2009 13:28:23 +0000 (+0400) Subject: [trivia] work around ksh93 builtin name (#451) X-Git-Tag: frr-2.0-rc1~2269^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3523bea8cbe98c83e3d1bdeb60180c8e59622773;p=mirror%2Ffrr.git [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 8b298c37e1..8457e99038 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 ;; *)