diff options
author | Andreas Pretzsch <apr@cn-eng.de> | 2014-10-27 00:47:53 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-11-13 14:51:02 +0100 |
commit | 6dbc1808a6bdc277772383e3c50de8e231e9b50c (patch) | |
tree | 116ed7732419b486f42634d432a6a8ff3a159ca5 | |
parent | 737d8a328196099044200a211329f21ef1b182b6 (diff) | |
download | ptxdist-6dbc1808a6bdc277772383e3c50de8e231e9b50c.tar.gz ptxdist-6dbc1808a6bdc277772383e3c50de8e231e9b50c.tar.xz |
dnsmasq: /etc/init.d/dnsmasq: fix erroneous "already running" message
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 <apr@cn-eng.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | generic/etc/init.d/dnsmasq | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/etc/init.d/dnsmasq b/generic/etc/init.d/dnsmasq index e9ef8c10a..6e6aa5dbc 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 ;; |