aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStonewall Jackson <stonewall@sacredheartsc.com>2023-03-27 09:16:25 -0400
committerStonewall Jackson <stonewall@sacredheartsc.com>2023-03-27 09:16:25 -0400
commit5690b861e33550f6dfa8bd5a682d291d36a42c21 (patch)
treecd3a944cf99155cc8119367a691acfc6812e3e5d
parent846513e1b752f6992f09db8bf1737fc5b94eff1c (diff)
downloadselfhosted-5690b861e33550f6dfa8bd5a682d291d36a42c21.tar.gz
selfhosted-5690b861e33550f6dfa8bd5a682d291d36a42c21.zip
dnf_automatic: restart auditd via service command
-rw-r--r--roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart2
1 files changed, 2 insertions, 0 deletions
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