2011-08-03 10:09:46 +00:00
|
|
|
[Unit]
|
2011-08-10 21:58:42 +00:00
|
|
|
Description=NFS Server
|
2011-08-03 10:09:46 +00:00
|
|
|
After=network.target rpcbind.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
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
|
|
|
|
|