-
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.
The file nfsd.service is currenty untracked. Import it into mxtools. This is preferred to the option of including it in the nfs_tools bee package, because it contains local configuration (e.g. the number 64 for the nproc argument) and we don't want to rebuild the bee package because of small configuration changes. Also add file to install script.
- 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 -N 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 |