From patchwork Mon Nov 25 13:55:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Davide Viti X-Patchwork-Id: 293986 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 539422C00A3 for ; Tue, 26 Nov 2013 00:56:27 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C886193B35; Mon, 25 Nov 2013 13:56:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id opxBTrHy5N78; Mon, 25 Nov 2013 13:56:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 74C3693BB6; Mon, 25 Nov 2013 13:56:23 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 62EA61BF832 for ; Mon, 25 Nov 2013 13:56:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 595CC80125 for ; Mon, 25 Nov 2013 13:56:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o5IFjQJtFGyQ for ; Mon, 25 Nov 2013 13:56:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ea0-f180.google.com (mail-ea0-f180.google.com [209.85.215.180]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2F4628BE1C for ; Mon, 25 Nov 2013 13:55:33 +0000 (UTC) Received: by mail-ea0-f180.google.com with SMTP id f15so2353644eak.25 for ; Mon, 25 Nov 2013 05:55:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=z7D1iRmxmieTOzEFeZTBna2i7Mi86VvIzJNXkbMFbuQ=; b=vCLtLuNqlbGHwB3u/HLtS5Nws3QCwH416XOW3qjYGddXFqmAkEziyYko8keFiwdCJ8 YQ5jDx4QP/CRzO8X+zs9fA7w8G5/c06k9XFv4NF086+FOikkezVNBUBHxDobZcuVIOBF czgo6MiO2v6C1SUSD3DQjSQZiUJ8zLbt47Cxc7gqdsWBbm3jmquPL3W6BKNbhPDVD0TT MozTdoXTawgfU8tapq6JCQ3pAHjN0c3gnOM7F1vn6gkUSTKQCUonbn6uB7LzkkojoxS6 r1R7qHqZ2bDpH3aQb+aBtHZ/miMHT7863nLXrT6awU4mEqP8SjxPnniM0D3cy70iUKcx 838Q== X-Received: by 10.14.102.66 with SMTP id c42mr2523711eeg.47.1385387731704; Mon, 25 Nov 2013 05:55:31 -0800 (PST) Received: from zino-Veriton-X2611G.infosolution.local (89-96-73-92.ip11.fastwebnet.it. [89.96.73.92]) by mx.google.com with ESMTPSA id a51sm94635815eeh.8.2013.11.25.05.55.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 05:55:30 -0800 (PST) From: Davide Viti To: buildroot@busybox.net Date: Mon, 25 Nov 2013 14:55:25 +0100 Message-Id: <1385387725-1733-1-git-send-email-d.viti@infosolution.it> X-Mailer: git-send-email 1.8.1.2 Cc: Davide Viti Subject: [Buildroot] [PATCH 1/1] mongoose: wait some time between stop and start of the service X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Startup script fails to restart the service: 1s delay is enough to fix this. Also apply a minor fix of the script name in the usage string Signed-off-by: Davide Viti --- package/mongoose/S85mongoose | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/mongoose/S85mongoose b/package/mongoose/S85mongoose index ff7da05..dc042d0 100755 --- a/package/mongoose/S85mongoose +++ b/package/mongoose/S85mongoose @@ -28,12 +28,12 @@ case "$1" in restart|force-reload) echo -n "Restarting $DESC: " start-stop-daemon -K -x "$DAEMON" + sleep 1 start-stop-daemon -S -x "$DAEMON" -b -- $OPTIONS echo "$NAME." ;; *) - N=/etc/init.d/$NAME - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: $0 {start|stop|restart|force-reload}" >&2 exit 1 ;; esac