nfs-utils/nfs-lock.service
Steve Dickson c1f844827f - Added StandardError=syslog+console to all the service files
so startup errors will be logged.
- Changed exportfs to only log errors on existing /etc/export.d
  directory, which eliminates a needless syslog entry.
- Automount /proc/fs/nfsd for rpc.nfsd

Signed-off-by: Steve Dickson <steved@redhat.com>
2011-08-24 14:38:38 -04:00

16 lines
412 B
Desktop File

[Unit]
Description=NFS file locking service.
After=network.target 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