diff options
Diffstat (limited to 'ypbind.service')
-rw-r--r-- | ypbind.service | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ypbind.service b/ypbind.service index bb13f1d66560..0556e256c8e2 100644 --- a/ypbind.service +++ b/ypbind.service @@ -3,6 +3,7 @@ Description=YP Bind Requires=rpcbind.service domainname.service After=rpcbind.service domainname.service network.target Before=systemd-user-sessions.service +Before=nss-user-lookup.target [Service] Type=forking @@ -10,7 +11,7 @@ PIDFile=/run/ypbind.pid ExecStart=/usr/bin/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" +ExecStartPost=/bin/sh -c "for i in 1 2 3 4 5 6 7 8 9 10; do ypwhich >/dev/null && break; sleep 1; done" [Install] WantedBy=multi-user.target |