summaryrefslogtreecommitdiff
path: root/extra/ypbind-mt/ypbind.service
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ypbind-mt/ypbind.service')
-rw-r--r--extra/ypbind-mt/ypbind.service3
1 files changed, 3 insertions, 0 deletions
diff --git a/extra/ypbind-mt/ypbind.service b/extra/ypbind-mt/ypbind.service
index c59231000..08e4fe14e 100644
--- a/extra/ypbind-mt/ypbind.service
+++ b/extra/ypbind-mt/ypbind.service
@@ -8,6 +8,9 @@ Before=systemd-user-sessions.service
Type=forking
PIDFile=/run/ypbind.pid
ExecStart=/usr/sbin/ypbind
+# Terrible hack, upstream ypbind should sort something out
+# Wait for at most 10 seconds for a NIS master to become available
+ExecStartPost=/bin/sh -c "for i in 1 2 3 4 5 6 7 8 9 10; do ypwhich && break; sleep 1; done"
[Install]
WantedBy=multi-user.target