2011-08-03 10:09:46 +00:00
|
|
|
[Unit]
|
|
|
|
Description=NFS file locking service.
|
2012-01-16 20:26:48 +00:00
|
|
|
Requires=rpcbind.service network.target
|
|
|
|
After=network.target named.service rpcbind.service
|
2012-03-15 15:31:32 +00:00
|
|
|
Wants=remote-fs-pre.target
|
|
|
|
Before=remote-fs-pre.target
|
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
|