From: Andreas Pretzsch <apr@cn-eng.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] dnsmasq: /etc/init.d/dnsmasq: fix erroneous "already running" message
Date: Mon, 27 Oct 2014 00:47:53 +0100 [thread overview]
Message-ID: <1414367273-31302-1-git-send-email-apr@cn-eng.de> (raw)
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>
---
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
ptxdist@pengutronix.de
next reply other threads:[~2014-10-26 23:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-26 23:47 Andreas Pretzsch [this message]
2014-11-13 16:52 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1414367273-31302-1-git-send-email-apr@cn-eng.de \
--to=apr@cn-eng.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox