From 3523bea8cbe98c83e3d1bdeb60180c8e59622773 Mon Sep 17 00:00:00 2001 From: Jingjing Duan Date: Tue, 23 Jun 2009 17:28:23 +0400 Subject: [trivia] work around ksh93 builtin name (#451) ksh93 script cannot have 'stop' functions w/o cancelling existing definition first. Fixed. --- solaris/quagga.init.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'solaris') 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 ;; *) -- cgit v1.2.1