Init script reports "already running" / "not running" based on existence of PID file. Test in start case is inverted. Fix this. Originally introduced in 1ca15292d20f8f73654ceba4b72d37f5bdb1cecf
Signed-off-by: Andreas Pretzsch <[email protected]> --- generic/etc/init.d/dnsmasq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/etc/init.d/dnsmasq b/generic/etc/init.d/dnsmasq index e9ef8c1..6e6aa5d 100644 --- a/generic/etc/init.d/dnsmasq +++ b/generic/etc/init.d/dnsmasq @@ -9,7 +9,7 @@ PIDFILE=/var/run/dnsmasq.pid case $1 in start) - test -e $PIDFILE || echo "already running" + test -e $PIDFILE && echo "already running" echo "dnsmasq starting" /usr/sbin/dnsmasq ;; -- 2.1.1 -- ptxdist mailing list [email protected]
