diff options
author | Juergen Daubert <jue@jue.li> | 2019-05-01 14:40:20 +0200 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2019-05-01 14:40:20 +0200 |
commit | 18a2ed2e8da06d8daf6e3461f716bf7710c0c9f1 (patch) | |
tree | 91f88bd8bec7dc15bda1f9719c048528832a5146 /dnsmasq | |
parent | b5d59978a446aaca16070a4d00533c602d1b8cd0 (diff) | |
download | opt-18a2ed2e8da06d8daf6e3461f716bf7710c0c9f1.tar.gz opt-18a2ed2e8da06d8daf6e3461f716bf7710c0c9f1.tar.xz |
dnsmasq: fix rc script for latest s-s-d
Diffstat (limited to 'dnsmasq')
-rw-r--r-- | dnsmasq/dnsmasq | 5 |
1 files changed, 3 insertions, 2 deletions
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" ;; |