2011-08-03 10:09:46 +00:00
|
|
|
[Unit]
|
2011-08-10 21:58:42 +00:00
|
|
|
Description=NFS Server
|
2012-01-16 20:26:48 +00:00
|
|
|
Requires=proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount rpcbind.service
|
2012-05-15 18:22:42 +00:00
|
|
|
Requires=nfs-idmap.service nfs-mountd.service nfs-rquotad.service
|
2013-03-25 12:51:50 +00:00
|
|
|
After=network.target named.service nfs-lock.service
|
2011-08-03 10:09:46 +00:00
|
|
|
|
|
|
|
[Service]
|
2012-05-15 18:22:42 +00:00
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
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/exportfs -r
|
2012-11-08 14:41:58 +00:00
|
|
|
ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
|
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
|
2013-07-23 18:21:54 +00:00
|
|
|
ExecReload=/usr/sbin/exportfs -r
|
2011-08-03 10:09:46 +00:00
|
|
|
|
|
|
|
[Install]
|
2013-05-07 17:40:30 +00:00
|
|
|
WantedBy=nfs.target
|
2011-08-03 10:09:46 +00:00
|
|
|
|