summaryrefslogtreecommitdiffstats
path: root/code/templates/initV
diff options
context:
space:
mode:
Diffstat (limited to 'code/templates/initV')
-rwxr-xr-xcode/templates/initV3
1 files changed, 3 insertions, 0 deletions
diff --git a/code/templates/initV b/code/templates/initV
index 4d98290..8a1ddd6 100755
--- a/code/templates/initV
+++ b/code/templates/initV
@@ -49,6 +49,9 @@ do_start()
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
+
+ # NOTE: may need to add --background here and just below if $DAEMON doesn't
+ # fork/detatch on it's own
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \