From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.mars-solutions.de ([213.239.212.107]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XiXXU-0001DM-JU for ptxdist@pengutronix.de; Mon, 27 Oct 2014 00:48:00 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.mars-solutions.de (Postfix) with ESMTP id 773D1A0458F for ; Mon, 27 Oct 2014 00:47:50 +0100 (CET) Received: from mail.mars-solutions.de ([127.0.0.1]) by localhost (mars-solutions.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6VdjmqUOvPdG for ; Mon, 27 Oct 2014 00:47:50 +0100 (CET) Received: from ws-apr.office.loc (HSI-KBW-37-49-64-252.hsi14.kabel-badenwuerttemberg.de [37.49.64.252]) by mail.mars-solutions.de (Postfix) with ESMTP id 07144A0458F for ; Mon, 27 Oct 2014 00:47:50 +0100 (CET) From: Andreas Pretzsch Date: Mon, 27 Oct 2014 00:47:53 +0100 Message-Id: <1414367273-31302-1-git-send-email-apr@cn-eng.de> Subject: [ptxdist] [PATCH] dnsmasq: /etc/init.d/dnsmasq: fix erroneous "already running" message Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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 --- 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