From patchwork Fri Nov 27 09:57:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 549363 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9E376140306 for ; Fri, 27 Nov 2015 20:58:19 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=iZ3MI6C3; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 215AE281482; Fri, 27 Nov 2015 10:58:12 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 39BB228021B for ; Fri, 27 Nov 2015 10:58:06 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 27 Nov 2015 10:58:05 +0100 (CET) Received: by wmvv187 with SMTP id v187so63279578wmv.1 for ; Fri, 27 Nov 2015 01:58:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=vnVGioZKrR17Q48Vhs6y+n22lHu/uVGwr/oa67dpdDE=; b=iZ3MI6C3eDM0PaUW/aS5jBGchCr7I74lD6xTw1Y7thF6K92j6FyKx4cTEOIh3ITp+S t2gNewfExgbrKfP0Cgg8ZvEan7dpwl/n+Z3ZB52e4jDkKdtmjG4fG6e/0Kx2SWzPLdw8 3MY3qXvt1AAsyMHLwQZ53fcgst+DYOtbtHO4jy6jfTXCSymhtF0vX7Hiaaq0A0kyIvLp vMCxw+ZxGfjoCKbVhu6ncURcdkBajdDZvIKuvwD3Eqo6xKaQR15lRFmsJJMJ2l6ItIBK B/ezg2GMxAAPcPq5GhxIvvlpbvezwoJDf43YM5fzICkwA5FxPMV4IP2qZNL+XJ5cgExz erNQ== X-Received: by 10.194.87.99 with SMTP id w3mr53862994wjz.76.1448618286682; Fri, 27 Nov 2015 01:58:06 -0800 (PST) Received: from orion.ocedo.cluj.local ([5.2.198.78]) by smtp.gmail.com with ESMTPSA id bk2sm32140397wjc.3.2015.11.27.01.58.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Nov 2015 01:58:06 -0800 (PST) From: Alexandru Ardelean To: openwrt-devel@lists.openwrt.org Date: Fri, 27 Nov 2015 11:57:59 +0200 Message-Id: <1448618279-24321-1-git-send-email-ardeleanalex@gmail.com> X-Mailer: git-send-email 2.1.4 Cc: Alexandru Ardelean Subject: [OpenWrt-Devel] [PATCH] lldpd: add STOP=01 param in init script X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" From: Alexandru Ardelean This should ensure that lldpd is among the first processes to stop, so that it has time to send the shutdown LLDPU to the other side, before the network goes down. Signed-off-by: Alexandru Ardelean --- package/network/services/lldpd/files/lldpd.init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/network/services/lldpd/files/lldpd.init b/package/network/services/lldpd/files/lldpd.init index 04e5b8c..6965189 100644 --- a/package/network/services/lldpd/files/lldpd.init +++ b/package/network/services/lldpd/files/lldpd.init @@ -1,7 +1,8 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2008-2012 OpenWrt.org +# Copyright (C) 2008-2015 OpenWrt.org START=90 +STOP=01 USE_PROCD=1 LLDPCLI=/usr/sbin/lldpcli