Blame SOURCES/nfs-utils-1.3.0-systemd-idmapd.patch

64c563
diff -up nfs-utils-1.3.0/systemd/nfs-idmapd.service.orig nfs-utils-1.3.0/systemd/nfs-idmapd.service
64c563
--- nfs-utils-1.3.0/systemd/nfs-idmapd.service.orig	2014-03-25 11:12:07.000000000 -0400
64c563
+++ nfs-utils-1.3.0/systemd/nfs-idmapd.service	2015-01-15 08:04:55.291478000 -0500
64c563
@@ -1,7 +1,7 @@
64c563
 [Unit]
64c563
 Description=NFSv4 ID-name mapping service
64c563
 
64c563
-PartOf=nfs-utils.service
64c563
+BindsTo=nfs-server.service
64c563
 
64c563
 Wants=nfs-config.service
64c563
 After=nfs-config.service
64c563
diff -up nfs-utils-1.3.0/systemd/nfs-mountd.service.orig nfs-utils-1.3.0/systemd/nfs-mountd.service
64c563
--- nfs-utils-1.3.0/systemd/nfs-mountd.service.orig	2014-03-25 11:12:07.000000000 -0400
64c563
+++ nfs-utils-1.3.0/systemd/nfs-mountd.service	2015-01-15 08:04:55.300477000 -0500
64c563
@@ -3,8 +3,7 @@ Description=NFS Mount Daemon
64c563
 Requires=proc-fs-nfsd.mount
64c563
 After=proc-fs-nfsd.mount
64c563
 After=network.target
64c563
-PartOf=nfs-server.service
64c563
-PartOf=nfs-utils.service
64c563
+BindsTo=nfs-server.service
64c563
 
64c563
 Wants=nfs-config.service
64c563
 After=nfs-config.service
64c563
diff -up nfs-utils-1.3.0/systemd/rpc-statd-notify.service.orig nfs-utils-1.3.0/systemd/rpc-statd-notify.service
64c563
--- nfs-utils-1.3.0/systemd/rpc-statd-notify.service.orig	2014-03-25 11:12:07.000000000 -0400
64c563
+++ nfs-utils-1.3.0/systemd/rpc-statd-notify.service	2015-01-15 08:06:17.251900000 -0500
64c563
@@ -14,6 +14,5 @@ After=nfs-config.service
64c563
 
64c563
 [Service]
64c563
 EnvironmentFile=-/run/sysconfig/nfs-utils
64c563
-Type=oneshot
64c563
-RemainAfterExit=yes
64c563
-ExecStart=-/usr/sbin/sm-notify -d $SMNOTIFYARGS
64c563
+Type=forking
64c563
+ExecStart=-/usr/sbin/sm-notify $SMNOTIFYARGS
64c563
diff -up nfs-utils-1.3.0/utils/statd/start-statd.orig nfs-utils-1.3.0/utils/statd/start-statd
64c563
--- nfs-utils-1.3.0/utils/statd/start-statd.orig	2015-01-15 08:03:24.456789000 -0500
64c563
+++ nfs-utils-1.3.0/utils/statd/start-statd	2015-01-15 08:05:34.612638000 -0500
64c563
@@ -5,9 +5,12 @@
64c563
 # It should run statd with whatever flags are apropriate for this
64c563
 # site.
64c563
 PATH="/sbin:/usr/sbin:/bin:/usr/bin"
64c563
-if systemctl start rpc-statd.service
64c563
-then :
64c563
-else
64c563
-    exec rpc.statd --no-notify
64c563
+
64c563
+# First try systemd if it's installed.
64c563
+if [ -d /run/systemd/system ]; then
64c563
+	# Quit only if the call worked.
64c563
+	systemctl start rpc-statd.service && exit
64c563
 fi
64c563
 
64c563
+# Fall back to launching it ourselves.
64c563
+exec rpc.statd --no-notify