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>
23 lines
684 B
Desktop File
23 lines
684 B
Desktop File
[Unit]
|
|
Description=NFS Server
|
|
Requires=proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount rpcbind.service
|
|
Requires=nfs-idmap.service nfs-mountd.service nfs-rquotad.service
|
|
After=network.target named.service nfs-lock.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
StandardError=syslog+console
|
|
EnvironmentFile=-/etc/sysconfig/nfs
|
|
ExecStartPre=/usr/libexec/nfs-utils/scripts/nfs-server.preconfig
|
|
ExecStartPre=/usr/sbin/exportfs -r
|
|
ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
|
|
ExecStartPost=-/usr/libexec/nfs-utils/scripts/nfs-server.postconfig
|
|
ExecStop=/usr/sbin/rpc.nfsd 0
|
|
ExecStopPost=/usr/sbin/exportfs -f
|
|
ExecReload=/usr/sbin/exportfs -r
|
|
|
|
[Install]
|
|
WantedBy=nfs.target
|
|
|