From d9298692b0cc79b971b8640c094734d91c30d1cd Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 22 Apr 2015 09:49:38 -0400 Subject: [PATCH] debian: Fix the start script * It is in sbin and not bin * Daemonize is not supported, let start-stop-daemon do it --- debian/osmo-stp.init | 6 +++--- 1 file 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