]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
nfs-utils: fix startup of nfsd if exportfs returns nonzero
authorAndreas Oberritter <obi@opendreambox.org>
Fri, 20 Jan 2017 12:30:59 +0000 (13:30 +0100)
committerAndreas Oberritter <obi@opendreambox.org>
Tue, 17 Oct 2017 02:38:27 +0000 (04:38 +0200)
If /etc/exports contains paths that don't exist during boot, the
server failed to start, because of the exit code of exportfs.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service

index 6481377d8099e5abef76d90614b042903a4ca310..e6bdc21edc46d93d4f68e5d38866d955ba207d9c 100644 (file)
@@ -11,12 +11,12 @@ ConditionPathExists=@SYSCONFDIR@/exports
 [Service]
 Type=oneshot
 EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf
-ExecStartPre=@SBINDIR@/exportfs -r
+ExecStartPre=-@SBINDIR@/exportfs -r
 ExecStart=@SBINDIR@/rpc.nfsd $NFSD_OPTS $NFSD_COUNT
 ExecStop=@SBINDIR@/rpc.nfsd 0
 ExecStopPost=@SBINDIR@/exportfs -au
 ExecStopPost=@SBINDIR@/exportfs -f
-ExecReload=@SBINDIR@/exportfs -r
+ExecReload=-@SBINDIR@/exportfs -r
 StandardError=syslog
 RemainAfterExit=yes