d87e9cb3d6
The package review for RHEL7 turned up a number of problems with the current nfs-utils specfile. This patch aims to fix most of them: - Swap out hardcoded paths for macros that are defined for this purpose - Move the systemd preconfig/postconfig scripts to /usr/libexec - Fix URL for Source0 - add directives to clean out $RPM_BUILD_ROOT in %install and %clean - add a %defattr() directive to ensure that all files are owned by root - get rid bogus %attr() settings on symlinks Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
18 lines
491 B
Desktop File
18 lines
491 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/libexec/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
|