From d5600bbc61a92589776a30cb7c33671bbadcef5c Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 17 Dec 2010 14:46:39 +0100 Subject: znc: bug fixing --- znc/init.d/znc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/znc/init.d/znc b/znc/init.d/znc index a8dca9b..23e7c43 100755 --- a/znc/init.d/znc +++ b/znc/init.d/znc @@ -32,7 +32,7 @@ start() { ebegin "Starting ZNC" eindent - for dir in "${ZNC_DATADIR}"; do + for dir in ${ZNC_DATADIR}; do if [ -d "${dir}" ]; then ebegin "${dir}" @@ -42,14 +42,14 @@ start() { --exec ${ZNC_DAEMON} \ --pidfile ${pidfile} \ --make-pidfile --background \ - --chdir ${dir} -- -d ${dir} -f + --chdir ${dir} --wait 500 \ + -- -d ${dir} -f eend $? fi done eoutdent - eend $? } stop() { @@ -74,7 +74,6 @@ stop() { done eoutdent - eend $? } reload() { @@ -94,5 +93,4 @@ reload() { done eoutdent - eend $? } -- cgit v1.2.3