9
0
Fork 0

debian: Fix the start script

* It is in sbin and not bin
* Daemonize is not supported, let start-stop-daemon do it
This commit is contained in:
Holger Hans Peter Freyther 2015-04-22 09:49:38 -04:00
parent c5950d7c60
commit d9298692b0
1 changed files with 3 additions and 3 deletions

View File

@ -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