Conflict nscd, start before sshd (#2539)

This commit is contained in:
Firstyear 2024-02-16 12:24:37 +10:00 committed by GitHub
parent a4c2e66afd
commit 7a78cb8a80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View file

@ -3,9 +3,12 @@
[Unit] [Unit]
Description=Kanidm Local Client Resolver Description=Kanidm Local Client Resolver
After=chronyd.service ntpd.service network-online.target After=chronyd.service nscd.service ntpd.service network-online.target
Before=systemd-user-sessions.service nss-user-lookup.target Before=systemd-user-sessions.service sshd.service nss-user-lookup.target
Wants=nss-user-lookup.target Wants=nss-user-lookup.target
# While it seems confusing, we need to be after nscd.service so that the
# Conflicts will triger and then automatically stop it.
Conflicts=nscd.service
[Service] [Service]
DynamicUser=yes DynamicUser=yes

View file

@ -3,9 +3,12 @@
[Unit] [Unit]
Description=Kanidm Local Client Resolver Description=Kanidm Local Client Resolver
After=chronyd.service ntpd.service network-online.target After=chronyd.service nscd.service ntpd.service network-online.target
Before=systemd-user-sessions.service nss-user-lookup.target Before=systemd-user-sessions.service sshd.service nss-user-lookup.target
Wants=nss-user-lookup.target Wants=nss-user-lookup.target
# While it seems confusing, we need to be after nscd.service so that the
# Conflicts will triger and then automatically stop it.
Conflicts=nscd.service
[Service] [Service]
DynamicUser=yes DynamicUser=yes