!17 do not use systemd to restart services with RefuseManualStart=true

From: @zou_lin77
Reviewed-by: @zhujianwei001
Signed-off-by: @zhujianwei001
This commit is contained in:
openeuler-ci-bot 2021-05-29 18:12:06 +08:00 committed by Gitee
commit e961899090

View File

@ -1,6 +1,6 @@
Name: sssd Name: sssd
Version: 2.2.2 Version: 2.2.2
Release: 6 Release: 7
Summary: System Security Services Daemon Summary: System Security Services Daemon
License: GPLv3+ and LGPLv3+ License: GPLv3+ and LGPLv3+
URL: https://pagure.io/SSSD/sssd/ URL: https://pagure.io/SSSD/sssd/
@ -541,23 +541,25 @@ fi
%postun %postun
%systemd_postun_with_restart sssd-autofs.socket %systemd_postun_with_restart sssd-autofs.socket
%systemd_postun_with_restart sssd-autofs.service
%systemd_postun_with_restart sssd-nss.socket %systemd_postun_with_restart sssd-nss.socket
%systemd_postun_with_restart sssd-nss.service
%systemd_postun_with_restart sssd-pac.socket %systemd_postun_with_restart sssd-pac.socket
%systemd_postun_with_restart sssd-pac.service
%systemd_postun_with_restart sssd-pam.socket %systemd_postun_with_restart sssd-pam.socket
%systemd_postun_with_restart sssd-pam-priv.socket %systemd_postun_with_restart sssd-pam-priv.socket
%systemd_postun_with_restart sssd-pam.service
%systemd_postun_with_restart sssd-ssh.socket %systemd_postun_with_restart sssd-ssh.socket
%systemd_postun_with_restart sssd-ssh.service
%systemd_postun_with_restart sssd-sudo.socket %systemd_postun_with_restart sssd-sudo.socket
%systemd_postun_with_restart sssd-sudo.service
%systemd_postun_with_restart sssd-kcm.socket %systemd_postun_with_restart sssd-kcm.socket
%systemd_postun_with_restart sssd-kcm.service %systemd_postun_with_restart sssd-kcm.service
%systemd_postun_with_restart sssd-ifp.service %systemd_postun_with_restart sssd-ifp.service
/sbin/ldconfig /sbin/ldconfig
# Services have RefuseManualStart=true, therefore we can't request restart.
%system_postun sssd-autofs.servece
%system_postun sssd-nss.service
%system_postun sssd-pac.service
%system_postun sssd-pam.service
%system_postun sssd-ssh.service
%system_postun sssd-sudo.service
%posttrans %posttrans
%systemd_postun_with_restart sssd.service %systemd_postun_with_restart sssd.service
%{_sbindir}/update-alternatives \ %{_sbindir}/update-alternatives \
@ -577,6 +579,9 @@ fi
%{_libdir}/%{name}/modules/libwbclient.so %{_libdir}/%{name}/modules/libwbclient.so
%changelog %changelog
* Sat May 29 2021 zoulin <zoulin13@huawei.com> - 2.2.2-7
- do not use systemd to restart services with RefuseManualStart=true
* Sat Sep 19 2020 Liquor <lirui130@huawei.com> - 2.2.2-6 * Sat Sep 19 2020 Liquor <lirui130@huawei.com> - 2.2.2-6
- install default sssd.conf file - install default sssd.conf file