aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-22 09:49:38 -0400
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-22 09:49:38 -0400
commitd9298692b0cc79b971b8640c094734d91c30d1cd (patch)
tree40580511467afe374426b423c8832b2e9615ef06
parentc5950d7c6025923891254cd66b095b943e6d02d8 (diff)
debian: Fix the start script
* It is in sbin and not bin * Daemonize is not supported, let start-stop-daemon do it
-rwxr-xr-xdebian/osmo-stp.init6
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/osmo-stp.init b/debian/osmo-stp.init
index e3794a6..8488505 100755
--- a/debian/osmo-stp.init
+++ b/debian/osmo-stp.init
@@ -15,7 +15,7 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
NAME=osmo-stp # Introduce the short server's name here
DESC="Osmocom STP" # Introduce a short description here
-DAEMON=/usr/bin/$NAME # Introduce the server's location here
+DAEMON=/usr/sbin/$NAME # Introduce the server's location here
SCRIPTNAME=/etc/init.d/$NAME
CONFIG_FILE=/etc/osmocom/$NAME.cfg
@@ -32,7 +32,7 @@ CONFIG_FILE=/etc/osmocom/$NAME.cfg
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
-DAEMON_ARGS="-D -c $CONFIG_FILE"
+DAEMON_ARGS="-c $CONFIG_FILE"
#
# Function that starts the daemon/service
@@ -45,7 +45,7 @@ do_start()
# 2 if daemon could not be started
start-stop-daemon --start --quiet --exec $DAEMON --test > /dev/null \
|| return 1
- start-stop-daemon --start --quiet --exec $DAEMON -- \
+ start-stop-daemon --start --quiet --background --exec $DAEMON -- \
$DAEMON_ARGS \
|| return 2
# Add code here, if necessary, that waits for the process to be ready