Commit aa89f5e3 authored by Christian Tacke's avatar Christian Tacke
Browse files

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.
parent ff8a4363
......@@ -80,7 +80,8 @@ if ! node['sys']['ldap'].empty? && File.exist?('/usr/bin/kinit')
'Unit' => {
'Documentation' => 'man:nslcd',
'Description' => 'Name service lookup daemon',
'Before' => ['graphical.target', 'xdm.service', 'nscd.service'],
'Before' => ['graphical.target', 'xdm.service', 'nscd.service', 'nss-user-lookup.target'],
'Wants' => ['nss-user-lookup.target']
'After' => 'k5start-nslcd.service',
'BindsTo' => 'k5start-nslcd.service',
#'JoinsNamespaceOf' => 'k5start-nslcd.service',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment