From 31e1bc463e6048ac515e83e5c339356f869053c0d229f95904fe6cdd5d1be150 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 10 Aug 2015 04:31:12 +0000 Subject: [PATCH] - nfs.service: improve back-compatibility with /etc/init.d/nfs + mount and unmount nfs filesystems on start/stop. + keep status as "good" when everything is running. (bnc#911986) OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=137 --- nfs-utils.changes | 8 ++++++++ nfs-utils.spec | 2 +- nfs.service | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/nfs-utils.changes b/nfs-utils.changes index d384e47..77d977a 100644 --- a/nfs-utils.changes +++ b/nfs-utils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Aug 10 04:28:42 UTC 2015 - nfbrown@suse.com + +- nfs.service: improve back-compatibility with /etc/init.d/nfs + + mount and unmount nfs filesystems on start/stop. + + keep status as "good" when everything is running. + (bnc#911986) + ------------------------------------------------------------------- Sun Nov 09 19:34:00 UTC 2014 - Led diff --git a/nfs-utils.spec b/nfs-utils.spec index 775249a..45c0f2a 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -1,7 +1,7 @@ # # spec file for package nfs-utils # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/nfs.service b/nfs.service index efd25c0..c843439 100644 --- a/nfs.service +++ b/nfs.service @@ -15,7 +15,10 @@ PropagatesReloadTo=nfs-client.target [Service] Type=oneshot +RemainAfterExit=yes ExecStart=/bin/true +ExecStartPost=/usr/bin/mount -at nfs,nfs4 +ExecStop=/usr/bin/umount -aft nfs,nfs4 [Install] WantedBy=multi-user.target