From patchwork Thu Mar 29 21:16:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gurucharan Shetty X-Patchwork-Id: 893001 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.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 40ByHk0VRVz9s02 for ; Fri, 30 Mar 2018 08:17:05 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id CE20CAD9; Thu, 29 Mar 2018 21:17:02 +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 54AAEACD for ; Thu, 29 Mar 2018 21:17:01 +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 576D55F4 for ; Thu, 29 Mar 2018 21:17:00 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id j3so3860305pgf.2 for ; Thu, 29 Mar 2018 14:17:00 -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:cc:subject:date:message-id; bh=YjSEhgSo+w0GV3npPTUXJytXGPu23RFHQ3zAeHeX9eo=; b=l2NEdWJZx9e6z6YdrOHuMge5iZiLb2ZjYnZani7adDpjuFFZTQdIcirm8xAUDPff3w UPlAb+rK02/OVmtm2CZIdLdo6qzZstf0Qwgoy6OGXFQgeGO07iOMcCtSDfuN2Cjw2rDv zdvC+AXkojoAAH1pc7ZD6/ic0itSl0HPjz91Pg9SvG72KPnNtUWNRXbdAMLeH8rT+Mis suHm0gqKSuPS4ee0CNa7a4S7xqOOpEdB3Am8Ynmgp7sXg+rrRhF3uLJn34qqpKVWO4mW HbfMIolYuaG4D0AVoT7AIJYhbCGCA4/1rbJre6dMSpAv3JB/g6UR6uEVwC9/QOGl7/cg 6dNg== X-Gm-Message-State: AElRT7HqHXoaqW3w+vNBQoBWizDRxmAZodQHhTDTBUn5d/Xbu9NOcF3W GMK28wakjixfQSGE64WyPR46VA== X-Google-Smtp-Source: AIpwx4+6ah5KN6Ex3PaPbtljrzQLP1QOy+w8CURa2OkU+fqa7K5TmZWKuAVpTWuwosUQ6vFLPF8tRA== X-Received: by 10.98.79.90 with SMTP id d87mr7620204pfb.41.1522358219736; Thu, 29 Mar 2018 14:16:59 -0700 (PDT) Received: from ubuntu.eng.vmware.com ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id q62sm15093889pfd.61.2018.03.29.14.16.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Mar 2018 14:16:58 -0700 (PDT) From: Gurucharan Shetty To: dev@openvswitch.org Date: Thu, 29 Mar 2018 14:16:50 -0700 Message-Id: <1522358210-26103-1-git-send-email-guru@ovn.org> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH] rhel/systemd: Prevent deletion of runtime directory. 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 Currently, when we do a 'service openvswitch stop', '/var/run/openvswitch' gets deleted. This is a problem if you have other users (like OVN) using the same runtime directory since we delete all the files related to ovsdb-server backing OVN's databases. This commit fixes it by removing the runtime directory information from the systemd unit file. CC: aconole@redhat.com Signed-off-by: Gurucharan Shetty --- I don't know whether there are other drawbacks of removing 'RuntimeDirectory' --- rhel/usr_lib_systemd_system_ovsdb-server.service | 2 -- 1 file changed, 2 deletions(-) diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service index e05742d..5fac90b 100644 --- a/rhel/usr_lib_systemd_system_ovsdb-server.service +++ b/rhel/usr_lib_systemd_system_ovsdb-server.service @@ -21,5 +21,3 @@ ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd stop ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd \ ${OVSUSER} \ --no-monitor restart $OPTIONS -RuntimeDirectory=openvswitch -RuntimeDirectoryMode=0755