package/netopeer2: fix sysv init script, does not start

- The netopeer server forks to background by default, no need for '-b'
 - The path to the daemon is /usr/sbin, not /usr/bin

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Acked-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Joachim Wiberg 2023-01-31 15:20:03 +01:00 committed by Yann E. MORIN
parent b89eff429d
commit 6ddc29708d

View File

@ -8,7 +8,7 @@ NETOPEER2_SERVER_ARGS=""
start() {
printf 'Starting %s: ' "$DAEMON"
start-stop-daemon -S -b -q -p $PIDFILE -x "/usr/bin/$DAEMON" \
start-stop-daemon -S -q -p $PIDFILE -x "/usr/sbin/$DAEMON" \
-- $NETOPEER2_SERVER_ARGS
status=$?
if [ "$status" -eq 0 ]; then