From patchwork Mon Jun 19 11:05:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gurucharan Shetty X-Patchwork-Id: 777980 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ws3yZ4KL7z9s2G for ; Tue, 20 Jun 2017 07:29:26 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 2A686B7D; Mon, 19 Jun 2017 21:29:22 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 24A55AB6 for ; Mon, 19 Jun 2017 21:29:21 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 99B35FC for ; Mon, 19 Jun 2017 21:29:20 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id e187so9394763pgc.3 for ; Mon, 19 Jun 2017 14:29:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=AjaoNNNMjL1qFlCv4w3Y4EmuHN+zUW1hmmJDcImFttw=; b=FLop9citk+e42383DmIQLpCYLkBbxhuEE3nt3pttLiuxLSu9BXX8IxCbEln9hG02mk Ybk3JKx00ZXWPNpNJ0C4BSeWqyL1c0XEs5H7Y5OlQczYw2YkXhS7OGbP+rq+0Eiqdj9Y Hi4It9/PNS8T21XmMVFnATW2l7Y+UZVRmrCOxS6m9CrIgK28CzXt+IYJNdrmcRHWndax NLaNfZJaWYP3biNTRA8mu4MYhRQdFFkDzy8J11gsKkXg4BeEn8CL3xiCyzj4iBGLTfn0 ZKJsNwnmfW0eN0A8xaiFEwzRzhj/k8zMoxUep3cmoASSGsWgMXuO9h7LcHLLstoSkc7i Qx+A== X-Gm-Message-State: AKS2vOwcjKmTm8zM5L1rfumYdpG5h2V1Vuoj+8byn7Vzbi/sC0dOkQsb LDmdteJ9OhBIoPag X-Received: by 10.84.148.203 with SMTP id y11mr155314plg.211.1497907759965; Mon, 19 Jun 2017 14:29:19 -0700 (PDT) Received: from ubuntu.eng.vmware.com ([208.91.1.34]) by smtp.gmail.com with ESMTPSA id 189sm22903964pgi.66.2017.06.19.14.29.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Jun 2017 14:29:19 -0700 (PDT) From: Gurucharan Shetty To: dev@openvswitch.org Date: Mon, 19 Jun 2017 04:05:58 -0700 Message-Id: <1497870359-24320-1-git-send-email-guru@ovn.org> X-Mailer: git-send-email 1.9.1 X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00, DATE_IN_PAST_06_12, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH 1/2] openvswitch-switch.init: Add some aliases. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org The most recent version of debian (and Ubuntu) has moved towards systemd in a way that many calls to openvswitch startup scripts get redirected to runtime generated systemd files. For e.g commands like 'service openvswitch-switch restart' or 'invoke-rc.d openvswitch-switch restart' etc will call 'stop' followed by 'start' on /etc/init.d/openvswitch-switch 'status' commands will not invoke /etc/init.d/openvswitch-switch at all. We have some special logic added to /etc/init.d/openvswitch-switch that is not easily portable to systemd files. This commit provides a few hidden commands that when called will skip the systemd generated files. Signed-off-by: Gurucharan Shetty --- debian/openvswitch-switch.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index 5c7c08b..b8cc23b 100755 --- a/debian/openvswitch-switch.init +++ b/debian/openvswitch-switch.init @@ -124,11 +124,11 @@ case $1 in reload | force-reload) # The OVS daemons keep up-to-date. ;; - restart) + restart | ovsrestart) shift restart "$@" ;; - status) + status | ovsstatus) ovs_ctl status exit $? ;;