From 3e4f023074267a7d2da289f625c9b7a76c6ecd8e Mon Sep 17 00:00:00 2001 From: Michel Decima Date: Thu, 30 Jan 2025 21:48:10 +0100 Subject: [PATCH] fix: add needrestart config override for sssd-*.service Solves #11 --- etc/needrestart/conf.d/orange-yourdev-login.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 etc/needrestart/conf.d/orange-yourdev-login.conf diff --git a/etc/needrestart/conf.d/orange-yourdev-login.conf b/etc/needrestart/conf.d/orange-yourdev-login.conf new file mode 100644 index 0000000..d0544b2 --- /dev/null +++ b/etc/needrestart/conf.d/orange-yourdev-login.conf @@ -0,0 +1,14 @@ +# +# SSSD secondary services are configured to refuse explicit start/stop +# operations. Allowing them to be automatically restarted by needrestart +# would only result in a "Failed to restart sssd-*.service..." message +# in the standart error log. +# +# Since these secondary services are bound to the main SSSD service, +# they will be restarted automatically when the main SSSD service is +# restarted by needrestart. However, please note that this restart +# will only triggered by an update of a dynamic library used by the +# main SSSD service. If a dynamic library used only by a secondary +# service is updated, then this service will not be restarted ... +# +$nrconf{override_rc}{qr(^sssd-.*\.service$)} = 0;