diff options
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service | 11 |
1 files changed, 8 insertions, 3 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 b9dfe74273..6481377d80 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service | |||
@@ -1,7 +1,11 @@ | |||
1 | [Unit] | 1 | [Unit] |
2 | Description=NFS Server | 2 | Description=NFS server and services |
3 | Requires=rpcbind.service nfs-mountd.service | 3 | DefaultDependencies=no |
4 | After=rpcbind.service | 4 | Requires=network.target proc-fs-nfsd.mount |
5 | Requires=nfs-mountd.service | ||
6 | Wants=rpcbind.service | ||
7 | After=local-fs.target | ||
8 | After=network.target proc-fs-nfsd.mount rpcbind.service nfs-mountd.service | ||
5 | ConditionPathExists=@SYSCONFDIR@/exports | 9 | ConditionPathExists=@SYSCONFDIR@/exports |
6 | 10 | ||
7 | [Service] | 11 | [Service] |
@@ -10,6 +14,7 @@ EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf | |||
10 | ExecStartPre=@SBINDIR@/exportfs -r | 14 | ExecStartPre=@SBINDIR@/exportfs -r |
11 | ExecStart=@SBINDIR@/rpc.nfsd $NFSD_OPTS $NFSD_COUNT | 15 | ExecStart=@SBINDIR@/rpc.nfsd $NFSD_OPTS $NFSD_COUNT |
12 | ExecStop=@SBINDIR@/rpc.nfsd 0 | 16 | ExecStop=@SBINDIR@/rpc.nfsd 0 |
17 | ExecStopPost=@SBINDIR@/exportfs -au | ||
13 | ExecStopPost=@SBINDIR@/exportfs -f | 18 | ExecStopPost=@SBINDIR@/exportfs -f |
14 | ExecReload=@SBINDIR@/exportfs -r | 19 | ExecReload=@SBINDIR@/exportfs -r |
15 | StandardError=syslog | 20 | StandardError=syslog |