diff options
author | Jingjing Duan <jingjing.duan@sun.com> | 2009-06-23 17:28:23 +0400 |
---|---|---|
committer | Denis Ovsienko <pilot@etcnet.org> | 2009-06-23 17:28:23 +0400 |
commit | 3523bea8cbe98c83e3d1bdeb60180c8e59622773 (patch) | |
tree | 5e869ae87daaee6e55c0e22f7822a3c0af4bdd14 /solaris/quagga.init.in | |
parent | 774eb1524c3a1e0a9567e6aff3315b4686ab3e75 (diff) |
[trivia] work around ksh93 builtin name (#451)
ksh93 script cannot have 'stop' functions w/o cancelling
existing definition first. Fixed.
Diffstat (limited to 'solaris/quagga.init.in')
-rwxr-xr-x | solaris/quagga.init.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solaris/quagga.init.in b/solaris/quagga.init.in index 8b298c37..8457e990 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 ;; *) |