[Unit]
Description=NFS Server Daemon
Documentation=man:rpc.nfsd(8)
After=rpcbind.service
Requires=rpcbind.service
Before=nfs-server.target
PartOf=nfs-server.target

[Service]
Type=oneshot
EnvironmentFile=/etc/default/nfs-utils
ExecStart=/usr/sbin/rpc.nfsd $NFSD_OPTS $NFSD_COUNT
ExecStartPost=/usr/sbin/exportfs -a
ExecReload=/usr/sbin/exportfs -a -r
ExecStop=/usr/sbin/rpc.nfsd 0
ExecStopPost=/usr/sbin/exportfs -a -u
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
