package/shairport-sync: fix init script (stop)
authorCarlos Santos <casantos@datacom.com.br>
Thu, 20 Dec 2018 22:18:38 +0000 (20:18 -0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 21 Dec 2018 13:55:17 +0000 (14:55 +0100)
commit6568b939293e46718434e284bded04b746fbd80f
tree8085df4c58c19b24f4c02cbdce56809fc11e7a97
parent416d46d72ba2f80398942b5cd29e412f28c43ee7
package/shairport-sync: fix init script (stop)

shairport-sync creates its pidfile at /var/run/shairport-sync/, so pass
that path to start-stop-daemon in the stop operation.

Also pass the executable path, allowing start-stop-daemon to check if
the PID matches the shairport-sync process, preventing killing some
other inocent daemon.

Fixes:
  https://bugs.busybox.net/show_bug.cgi?id=11566

Reported-by: Bin Zhang <yangtze31@gmail.com>
Signed-off-by: Carlos Santos <casantos@datacom.com.br>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/shairport-sync/S99shairport-sync