[PATCH] systemd: Only start the rpc-gssd service when its enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When Kerberos is enabled, the /etc/krb5.keytab exists
which causes the rpc-gssd to start, automatically.

With rpc.gssd running, on all NFS mounts, an
upcall is done to get GSS security context for
SETCLIENTID procedure.

When Kerberos is not configured for NFS, meaning
there is no host/hostname@REALM principal in
the key tab, those upcalls always fall causing
the mount to hang for several seconds.

This patch adds an [Install] section so the service
can be enable and disable, so those errant upcalls
can be stopped which eliminating the delay.

Signed-off-by: Steve Dickson <steved@xxxxxxxxxx>
---
 systemd/rpc-gssd.service | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/systemd/rpc-gssd.service b/systemd/rpc-gssd.service
index d4a3819..df9f090 100644
--- a/systemd/rpc-gssd.service
+++ b/systemd/rpc-gssd.service
@@ -17,3 +17,9 @@ EnvironmentFile=-/run/sysconfig/nfs-utils
 
 Type=forking
 ExecStart=/usr/sbin/rpc.gssd $GSSDARGS
+
+# Only start if service is enabled 
+# and /etc/krb5.keytab exists 
+[Install]
+WantedBy=multi-user.target
+
-- 
2.5.5

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux