diff options
author | Fabiano Fidêncio <fidencio@redhat.com> | 2017-02-06 19:05:29 +0100 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2017-03-01 12:03:03 +0100 |
commit | bd5e09bad2b0ac8a7ca78f45d90c8ebb903efaa3 (patch) | |
tree | e5b90155d3403c1b48f0d20a768a6fcee83d4ce1 /src/sysv/systemd/sssd-pac.socket.in | |
parent | 0adcf95a423155f9c9d8062af42561402ceab4cc (diff) | |
download | sssd-bd5e09bad2b0ac8a7ca78f45d90c8ebb903efaa3.tar.gz sssd-bd5e09bad2b0ac8a7ca78f45d90c8ebb903efaa3.tar.xz sssd-bd5e09bad2b0ac8a7ca78f45d90c8ebb903efaa3.zip |
SYSTEMD: Avoid starting a responder socket in case SSSD is not started
As systemd adds "Before=sockets.target" to any socket unit by default,
during the startup of the system we can end up having a responder socket
up, being contacted while SSSD is shutdown.
By using "DefaultDependencies=no" we ensure that sockets.target won't
trigger the sockets' startup and that it only will be done when SSSD is
up. The downside of using "DefaultDependencies=no" is that we have to
deal with conflicts and add "Conflicts=shutdown.target" to each of the
sockets unit.
This patch has been suggested by Lukáš Nykrýn.
Related:
https://pagure.io/SSSD/sssd/issue/3298
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/sysv/systemd/sssd-pac.socket.in')
-rw-r--r-- | src/sysv/systemd/sssd-pac.socket.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sysv/systemd/sssd-pac.socket.in b/src/sysv/systemd/sssd-pac.socket.in index e17879aa6..fc778243e 100644 --- a/src/sysv/systemd/sssd-pac.socket.in +++ b/src/sysv/systemd/sssd-pac.socket.in @@ -3,6 +3,8 @@ Description=SSSD PAC Service responder socket Documentation=man:sssd.conf(5) After=sssd.service BindsTo=sssd.service +DefaultDependencies=no +Conflicts=shutdown.target [Socket] ListenStream=@pipepath@/pac |