-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from mariux64/add-nfsd-service
Fix nfsd 4.19 upgrade problems
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=NFS Daemon | ||
ConditionPathExists=/etc/exports | ||
Requires=local-fs.target proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount unbound.service | ||
After=local-fs.target proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount unbound.service | ||
|
||
[Service] | ||
ExecStartPre=/bin/mkdir -p /var/lib/nfs/v4recovery | ||
ExecStartPre=/usr/sbin/exportfs -ra | ||
ExecStart=/usr/sbin/rpc.mountd --foreground --manage-gids | ||
ExecStartPost=/usr/sbin/rpc.nfsd --lease-time 90 --grace-time 90 --no-nfs-version 3 64 ; /usr/sbin/sm-notify | ||
ExecReload=/usr/sbin/exportfs -ra | ||
ExecStopPost=/usr/sbin/rpc.nfsd 0 ; /usr/sbin/exportfs -ua | ||
Restart=always | ||
|
||
[Install] | ||
WantedBy=multi-user.target |