2 Description=NFS file locking service
3 Requires=rpcbind.service network.target
4 After=network.target named.service rpcbind.service blkmapd.service idmapd.service nfsd.service
8 StandardError=syslog+console
9 EnvironmentFile=-/etc/sysconfig/nfslock
10 ExecStartPre=/usr/share/nfs-utils/nfslock.preconfig
11 ExecStart=/sbin/rpc.statd $STATDOPTIONS
12 # Make sure lockd's ports are reset
13 ExecStopPost=-/sbin/sysctl -w fs.nfs.nlm_tcpport=0 fs.nfs.nlm_udpport=0
16 WantedBy=multi-user.target