Order nss-user-lookup.target after nslcd.service
See: systemd.special(7) entry on nss-user-lookup.target.
nslcd provides LDAP based user lookups. nss-user-lookup.target should only be reached when all user lookup services are ready. So order accordingly.
systemd.special(7) also suggests to add a Wants= for services providing user lookup. So also add that.
NOTES:
- I have NOT tested this chef recipe changes in any way. They're meant as a suggestion.
- I HAVE tested this locally by having a
/etc/systemd/system/nslcd.service.d/nss-user-lookup.conf
with this content:[Unit] Before=nss-user-lookup.target Wants=nss-user-lookup.target
Edited by Christopher Huhn