- 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
This commit is contained in:
Neil Brown 2015-08-10 04:31:12 +00:00 committed by Git OBS Bridge
parent 35ecbc8e59
commit 31e1bc463e
3 changed files with 12 additions and 1 deletions

View File

@ -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 <ledest@gmail.com>

View File

@ -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

View File

@ -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