All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] exportfs: Ingnore export failures in nfs-server.serivce unit
@ 2020-12-10 18:24 Steve Dickson
  2020-12-11 13:48 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Dickson @ 2020-12-10 18:24 UTC (permalink / raw)
  To: Linux NFS Mailing list

With some recent commits, exportfs will continue on trying to
export filesystems even when an entry is invalid or does
not exist, but will still have a non-zero exit to report
the error.

This situation should not stop the nfs-server service
from comingup so nfs-server.service file should
ignore these types of failures

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 systemd/nfs-server.service | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/systemd/nfs-server.service b/systemd/nfs-server.service
index 06c1adb..b432f91 100644
--- a/systemd/nfs-server.service
+++ b/systemd/nfs-server.service
@@ -21,13 +21,13 @@ After=rpc-gssd.service gssproxy.service rpc-svcgssd.service
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStartPre=/usr/sbin/exportfs -r
+ExecStartPre=-/usr/sbin/exportfs -r
 ExecStart=/usr/sbin/rpc.nfsd
 ExecStop=/usr/sbin/rpc.nfsd 0
 ExecStopPost=/usr/sbin/exportfs -au
 ExecStopPost=/usr/sbin/exportfs -f
 
-ExecReload=/usr/sbin/exportfs -r
+ExecReload=-/usr/sbin/exportfs -r
 
 [Install]
 WantedBy=multi-user.target
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] exportfs: Ingnore export failures in nfs-server.serivce unit
  2020-12-10 18:24 [PATCH] exportfs: Ingnore export failures in nfs-server.serivce unit Steve Dickson
@ 2020-12-11 13:48 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2020-12-11 13:48 UTC (permalink / raw)
  To: Linux NFS Mailing list



On 12/10/20 1:24 PM, Steve Dickson wrote:
> With some recent commits, exportfs will continue on trying to
> export filesystems even when an entry is invalid or does
> not exist, but will still have a non-zero exit to report
> the error.
> 
> This situation should not stop the nfs-server service
> from comingup so nfs-server.service file should
> ignore these types of failures
> 
> Signed-off-by: Steve Dickson <steved@redhat.com>
Committed. (tag: nfs-utils-2-5-3-rc2)

steved.
> ---
>  systemd/nfs-server.service | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/systemd/nfs-server.service b/systemd/nfs-server.service
> index 06c1adb..b432f91 100644
> --- a/systemd/nfs-server.service
> +++ b/systemd/nfs-server.service
> @@ -21,13 +21,13 @@ After=rpc-gssd.service gssproxy.service rpc-svcgssd.service
>  [Service]
>  Type=oneshot
>  RemainAfterExit=yes
> -ExecStartPre=/usr/sbin/exportfs -r
> +ExecStartPre=-/usr/sbin/exportfs -r
>  ExecStart=/usr/sbin/rpc.nfsd
>  ExecStop=/usr/sbin/rpc.nfsd 0
>  ExecStopPost=/usr/sbin/exportfs -au
>  ExecStopPost=/usr/sbin/exportfs -f
>  
> -ExecReload=/usr/sbin/exportfs -r
> +ExecReload=-/usr/sbin/exportfs -r
>  
>  [Install]
>  WantedBy=multi-user.target
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-11 13:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-10 18:24 [PATCH] exportfs: Ingnore export failures in nfs-server.serivce unit Steve Dickson
2020-12-11 13:48 ` Steve Dickson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.