summaryrefslogtreecommitdiffstats
path: root/src/sysv/systemd/sssd-pac.socket.in
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2016-11-17 00:36:10 +0100
committerLukas Slebodnik <lslebodn@redhat.com>2017-01-23 18:46:37 +0100
commite4093605339062548364d338c811431673bdfe25 (patch)
tree723e4a68a211ca87887a72b54083d8970c6b6c46 /src/sysv/systemd/sssd-pac.socket.in
parent40e9ad2bf250cc3bfcdec7fb96031e2771160f69 (diff)
downloadsssd-e4093605339062548364d338c811431673bdfe25.tar.gz
sssd-e4093605339062548364d338c811431673bdfe25.tar.xz
sssd-e4093605339062548364d338c811431673bdfe25.zip
PAC: Make PAC responder socket-activatable
As part of the effort of making all responder socket-activatable, let's make PAC responder ready for this by providing its systemd's units. In case the administrators want to use PAC responder taking advantage of socket-activation they will need to enable sssd-pac.socket and after a restart of the sssd service, the PAC socket will be ready waiting for any activity in order to start the PAC responder. Also, the PAC responder must be removed from the services line on sssd.conf. The PAC responder service is binded to the SSSD service, which means that the responder will be restarted in case SSSD is restarted and shutdown in case SSSD is shutdown/crashes. Related: https://fedorahosted.org/sssd/ticket/2243 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@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.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sysv/systemd/sssd-pac.socket.in b/src/sysv/systemd/sssd-pac.socket.in
new file mode 100644
index 000000000..cb1bd68fa
--- /dev/null
+++ b/src/sysv/systemd/sssd-pac.socket.in
@@ -0,0 +1,12 @@
+[Unit]
+Description=SSSD PAC Service responder socket
+Documentation=man:sssd.conf(5)
+BindsTo=sssd.service
+
+[Socket]
+ListenStream=@pipepath@/pac
+SocketUser=@SSSD_USER@
+SocketGroup=@SSSD_USER@
+
+[Install]
+WantedBy=sssd.service