aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2017-01-20 13:30:59 +0100
committerAndreas Oberritter <obi@opendreambox.org>2017-10-17 04:38:27 +0200
commitbf30b819b6f5c56654c7464f1aee34e8fc5fa627 (patch)
tree1a373327e15c87faf3db3211c34a26ac7bff2c37
parentef5c5a0be6993e60063800c4a2c9068af306902c (diff)
downloadopenembedded-core-contrib-bf30b819b6f5c56654c7464f1aee34e8fc5fa627.tar.gz
nfs-utils: fix startup of nfsd if exportfs returns nonzero
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>
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
index 6481377d80..e6bdc21edc 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
@@ -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