mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
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:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
3b2ce753bb
commit
99c33ea676
@@ -9,7 +9,7 @@ PIDFILE="/var/run/$NAME.pid"
|
|||||||
|
|
||||||
cmd()
|
cmd()
|
||||||
{
|
{
|
||||||
start-stop-daemon -q -p "$PIDFILE" "$@"
|
start-stop-daemon -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" "$@"
|
||||||
status=$?
|
status=$?
|
||||||
if [ $status -eq 0 ]; then
|
if [ $status -eq 0 ]; then
|
||||||
echo "OK"
|
echo "OK"
|
||||||
@@ -23,7 +23,7 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
printf 'Starting %s: ' "$DAEMON"
|
printf 'Starting %s: ' "$DAEMON"
|
||||||
# shellcheck disable=SC2086 # we need the word splitting
|
# shellcheck disable=SC2086 # we need the word splitting
|
||||||
cmd -S -x "/usr/sbin/$DAEMON" -- $SMCROUTED_ARGS
|
cmd -S -- $SMCROUTED_ARGS
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
|
|||||||
Reference in New Issue
Block a user