From 5690b861e33550f6dfa8bd5a682d291d36a42c21 Mon Sep 17 00:00:00 2001 From: Stonewall Jackson Date: Mon, 27 Mar 2023 09:16:25 -0400 Subject: dnf_automatic: restart auditd via service command --- roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart b/roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart index 530a860..4273ef0 100644 --- a/roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart +++ b/roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart @@ -13,6 +13,8 @@ SERVICES=() dnf needs-restarting --services | while read -r service; do if [[ $service = user@* ]]; then continue + elif [ "$service" = 'auditd.service' ]; then + service auditd restart elif [ "$(systemctl show "$service" --property RefuseManualStop --value)" = yes ]; then continue else -- cgit