summaryrefslogtreecommitdiffstats
path: root/znc/init.d/znc
diff options
context:
space:
mode:
Diffstat (limited to 'znc/init.d/znc')
-rwxr-xr-xznc/init.d/znc8
1 files 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 $?
}