2011-08-03 10:09:46 +00:00
|
|
|
[Unit]
|
|
|
|
Description=NFS file locking service.
|
2011-11-14 22:16:42 +00:00
|
|
|
After=syslog.target network.target rpcbind.service
|
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
|
|
|
|
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
|