2011-08-03 10:09:46 +00:00
|
|
|
[Unit]
|
2011-08-10 21:58:42 +00:00
|
|
|
Description=NFS Server
|
2011-08-24 18:38:38 +00:00
|
|
|
Requires=proc-fs-nfsd.mount
|
2011-11-14 22:16:42 +00:00
|
|
|
After=syslog.target network.target rpcbind.service proc-fs-nfsd.mount
|
2011-08-03 10:09:46 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2011-08-24 18:38:38 +00:00
|
|
|
StandardError=syslog+console
|
2011-08-03 10:09:46 +00:00
|
|
|
EnvironmentFile=-/etc/sysconfig/nfs
|
2011-08-10 21:58:42 +00:00
|
|
|
ExecStartPre=/usr/lib/nfs-utils/scripts/nfs-server.preconfig
|
2011-08-03 10:09:46 +00:00
|
|
|
ExecStartPre=-/usr/sbin/rpc.rquotad $RPCRQUOTADOPTS
|
|
|
|
ExecStartPre=/usr/sbin/exportfs -r
|
|
|
|
ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS ${RPCNFSDCOUNT}
|
|
|
|
ExecStartPost=/usr/sbin/rpc.mountd $RPCMOUNTDOPTS
|
|
|
|
ExecStartPost=-/usr/lib/nfs-utils/scripts/nfs-server.postconfig
|
|
|
|
ExecStop=/usr/sbin/rpc.nfsd 0
|
|
|
|
ExecStopPost=/usr/sbin/exportfs -f
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|