package/smcroute: cross check PID with process name in stop action
Signed-off-by: Joachim Wiberg <troglobit@gmail.com> [Arnout: keep the shellcheck comments] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
3b2ce753bb
commit
99c33ea676
@ -9,7 +9,7 @@ PIDFILE="/var/run/$NAME.pid"
|
||||
|
||||
cmd()
|
||||
{
|
||||
start-stop-daemon -q -p "$PIDFILE" "$@"
|
||||
start-stop-daemon -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" "$@"
|
||||
status=$?
|
||||
if [ $status -eq 0 ]; then
|
||||
echo "OK"
|
||||
@ -23,7 +23,7 @@ case "$1" in
|
||||
start)
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
cmd -S -x "/usr/sbin/$DAEMON" -- $SMCROUTED_ARGS
|
||||
cmd -S -- $SMCROUTED_ARGS
|
||||
;;
|
||||
|
||||
stop)
|
||||
|
Loading…
Reference in New Issue
Block a user