From patchwork Fri Oct 6 02:48:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: NeilBrown X-Patchwork-Id: 9988289 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8B97C60216 for ; Fri, 6 Oct 2017 02:48:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7768428CBB for ; Fri, 6 Oct 2017 02:48:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BFD928CC2; Fri, 6 Oct 2017 02:48:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_TVD_MIME_EPI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D575928CBB for ; Fri, 6 Oct 2017 02:48:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751423AbdJFCsL (ORCPT ); Thu, 5 Oct 2017 22:48:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:59264 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751418AbdJFCsL (ORCPT ); Thu, 5 Oct 2017 22:48:11 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id EEDABAC70; Fri, 6 Oct 2017 02:48:09 +0000 (UTC) From: NeilBrown To: Steve Dickson Date: Fri, 06 Oct 2017 13:48:04 +1100 Cc: Linux NFS Mailing List Subject: [nfs-utils PATCH] Add RemainAfterExit to two services. Message-ID: <877ew90z6j.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Both auth-rpcgss-module and rpc-statd-notify only ever need to be run once - the effect they have is permanent. We can give this information to systemd by setting RemainAfterExit=yes This avoids the minor cost of running them a second time if something "Wants" either service after it was first run, (e.g. both client and server startup can Want these), and avoids systemd complaining that it restarts to fast if multiple Wants happen at nearly the same time. Signed-off-by: NeilBrown --- systemd/auth-rpcgss-module.service | 1 + systemd/rpc-statd-notify.service | 1 + 2 files changed, 2 insertions(+) diff --git a/systemd/auth-rpcgss-module.service b/systemd/auth-rpcgss-module.service index 5241f7b5d58e..4548283377d0 100644 --- a/systemd/auth-rpcgss-module.service +++ b/systemd/auth-rpcgss-module.service @@ -14,3 +14,4 @@ ConditionPathExists=/etc/krb5.keytab [Service] Type=oneshot ExecStart=/sbin/modprobe -q auth_rpcgss +RemainAfterExit=yes diff --git a/systemd/rpc-statd-notify.service b/systemd/rpc-statd-notify.service index 687fe31140c0..aad4c0d29efe 100644 --- a/systemd/rpc-statd-notify.service +++ b/systemd/rpc-statd-notify.service @@ -13,3 +13,4 @@ PartOf=nfs-utils.service [Service] Type=forking ExecStart=-/usr/sbin/sm-notify +RemainAfterExit=yes