]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
nfs-utils: sync systemd unit files with nfs-utils.git
authorAndreas Oberritter <obi@opendreambox.org>
Tue, 1 Nov 2016 23:03:59 +0000 (00:03 +0100)
committerAndreas Oberritter <obi@opendreambox.org>
Tue, 17 Oct 2017 02:38:27 +0000 (04:38 +0200)
nfs-server failed to start after install.

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

index 28b7388f6759d1a68991c1d184c9851fb1619af7..27ea58d36628b349cd3691dc91bb257127b1d283 100644 (file)
@@ -1,7 +1,10 @@
 [Unit]
 Description=NFS Mount Daemon
-After=rpcbind.service nfs-server.service
-Requires=rpcbind.service nfs-server.service
+DefaultDependencies=no
+Requires=proc-fs-nfsd.mount
+After=proc-fs-nfsd.mount
+After=network.target local-fs.target
+BindsTo=nfs-server.service
 ConditionPathExists=@SYSCONFDIR@/exports
 
 [Service]
index b9dfe74273c0e8682a5b6c3f3421c4b2a29a8083..6481377d8099e5abef76d90614b042903a4ca310 100644 (file)
@@ -1,7 +1,11 @@
 [Unit]
-Description=NFS Server
-Requires=rpcbind.service nfs-mountd.service
-After=rpcbind.service
+Description=NFS server and services
+DefaultDependencies=no
+Requires=network.target proc-fs-nfsd.mount
+Requires=nfs-mountd.service
+Wants=rpcbind.service
+After=local-fs.target
+After=network.target proc-fs-nfsd.mount rpcbind.service nfs-mountd.service
 ConditionPathExists=@SYSCONFDIR@/exports
 
 [Service]
@@ -10,6 +14,7 @@ EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf
 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
 StandardError=syslog
index 746dacf056bc17b70503bfa07f00e4f96f7b00f5..6e196b8c8c16f9bc878ee2aa12aa79091626feab 100644 (file)
@@ -1,8 +1,9 @@
 [Unit]
-Description=NFS file locking service
-After=rpcbind.service
-Requires=rpcbind.service
-Before=remote-fs-pre.target
+Description=NFS status monitor for NFSv2/3 locking.
+DefaultDependencies=no
+Conflicts=umount.target
+Requires=nss-lookup.target rpcbind.service
+After=network.target nss-lookup.target rpcbind.service
 
 [Service]
 EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf