ports/opt (3.5): dnsmasq: fix rc script for latest s-s-d
commit 18a2ed2e8da06d8daf6e3461f716bf7710c0c9f1 Author: Juergen Daubert <jue@jue.li> Date: Wed May 1 14:40:20 2019 +0200 dnsmasq: fix rc script for latest s-s-d diff --git a/dnsmasq/dnsmasq b/dnsmasq/dnsmasq index f39d6c987..1f551830f 100644 --- a/dnsmasq/dnsmasq +++ b/dnsmasq/dnsmasq @@ -5,6 +5,7 @@ SSD=/sbin/start-stop-daemon PROG=/usr/sbin/dnsmasq +NAME=dnsmasq PID=/var/run/dnsmasq.pid case $1 in @@ -12,7 +13,7 @@ start) $SSD --start --pidfile $PID --exec $PROG ;; stop) - $SSD --stop --remove-pidfile --retry 10 --pidfile $PID + $SSD --stop --remove-pidfile --retry 10 --pidfile $PID --name $NAME ;; restart) $0 stop @@ -22,7 +23,7 @@ reload) $SSD --stop --signal HUP --pidfile $PID ;; status) - $SSD --status --pidfile $PID + $SSD --status --pidfile $PID --name $NAME case $? in 0) echo "$PROG is running with pid $(cat $PID)" ;; 1) echo "$PROG is not running but the pid file $PID exists" ;;
participants (1)
-
crux@crux.nu