diff options
author | Fabiano Fidêncio <fidencio@redhat.com> | 2016-11-17 01:09:56 +0100 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2017-01-23 18:46:37 +0100 |
commit | b33c275ebac86695f7a2fa866e5766d469e2c578 (patch) | |
tree | e1abfe88e30e67c7d9855a610108e6c2a83aa42e /contrib | |
parent | 6a7e28f06e4db1fa07e63ee39f3c28446ff56f4e (diff) | |
download | sssd-b33c275ebac86695f7a2fa866e5766d469e2c578.tar.gz sssd-b33c275ebac86695f7a2fa866e5766d469e2c578.tar.xz sssd-b33c275ebac86695f7a2fa866e5766d469e2c578.zip |
SSH: Make SSH responder socket-activatable
As part of the effort of making all responder socket-activatable, let's
make SSH responder ready for this by providing its systemd's units.
In case the administrators want to use SSH responder taking advantage
of socket-activation they will need to enable sssd-ssh.socket and after
a restart of the sssd service, the SSH socket will be ready waiting for
any activity in order to start the SSH responder. Also, the SSH
responder must be removed from the services line on sssd.conf.
The SSH 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 'contrib')
-rw-r--r-- | contrib/sssd.spec.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 72c67124a..786141aa4 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -808,6 +808,8 @@ done %{_unitdir}/sssd-pam.socket %{_unitdir}/sssd-pam-priv.socket %{_unitdir}/sssd-pam.service +%{_unitdir}/sssd-ssh.socket +%{_unitdir}/sssd-ssh.service %{_unitdir}/sssd-secrets.socket %{_unitdir}/sssd-secrets.service %else @@ -1148,6 +1150,7 @@ getent passwd sssd >/dev/null || useradd -r -g sssd -d / -s /sbin/nologin -c "Us %systemd_post sssd-pam.socket %systemd_post sssd-pam-priv.socket %systemd_post sssd-secrets.socket +%systemd_post sssd-ssh.socket %preun common %systemd_preun sssd.service @@ -1157,6 +1160,7 @@ getent passwd sssd >/dev/null || useradd -r -g sssd -d / -s /sbin/nologin -c "Us %systemd_preun sssd-pam.socket %systemd_preun sssd-pam-priv.socket %systemd_preun sssd-secrets.socket +%systemd_preun sssd-ssh.socket %postun common %systemd_postun_with_restart sssd.service @@ -1171,6 +1175,8 @@ getent passwd sssd >/dev/null || useradd -r -g sssd -d / -s /sbin/nologin -c "Us %systemd_postun_with_restart sssd-pam.service %systemd_postun_with_restart sssd-secrets.socket %systemd_postun_with_restart sssd-secrets.service +%systemd_postun_with_restart sssd-ssh.socket +%systemd_postun_with_restart sssd-ssh.service %else # sysv |