2011-08-03 10:09:46 +00:00
|
|
|
[Unit]
|
2011-08-10 21:58:42 +00:00
|
|
|
Description=NFS Server
|
2011-12-15 16:26:23 +00:00
|
|
|
Requires=proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount
|
|
|
|
After=network.target named.service rpcbind.service proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.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
|
2011-12-13 20:58:20 +00:00
|
|
|
ExecStartPost=/usr/sbin/rpc.idmapd $RPCIDMAPDARGS
|
2011-08-03 10:09:46 +00:00
|
|
|
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
|
|
|
|
|