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:
parent
c5950d7c60
commit
d9298692b0
|
@ -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
|
||||
|
|
Reference in New Issue