2011-08-03 10:09:46 +00:00
|
|
|
[Unit]
|
|
|
|
Description=NFS file locking service.
|
|
|
|
After=network.target rpcbind.service
|
|
|
|
|
|
|
|
[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
|
|
|
|
ExecStartPre=/usr/lib/nfs-utils/scripts/nfs-lock.preconfig
|
|
|
|
ExecStart=/sbin/rpc.statd $STATDARG
|
|
|
|
# Make sure lockd's ports are reset
|
|
|
|
ExecStopPost=-/sbin/sysctl -w fs.nfs.nlm_tcpport=0 fs.nfs.nlm_udpport=0
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|