nfs-utils/nfs-lock.service
Steve Dickson 30a12be369 systemd: nfs-server.service needs to be split up (bz 769879)
Signed-off-by: Steve Dickson <steved@redhat.com>
2013-05-07 13:40:49 -04:00

18 lines
487 B
Desktop File

[Unit]
Description=NFS file locking service.
Requires=rpcbind.service network.target
After=network.target named.service rpcbind.service
Before=remote-fs-pre.target
[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=nfs.target