nfs-utils/nfs-lock.service
Steve Dickson b076d24c60 Reworked how the nfsd service requires the rpcbind service (bz 768550)
Signed-off-by: Steve Dickson <steved@redhat.com>
2012-01-16 15:26:48 -05:00

17 lines
466 B
Desktop File

[Unit]
Description=NFS file locking service.
Requires=rpcbind.service network.target
After=network.target named.service rpcbind.service
[Service]
Type=forking
StandardError=syslog+console
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