diff options
author | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-03-27 09:16:25 -0400 |
---|---|---|
committer | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-03-27 09:16:25 -0400 |
commit | 5690b861e33550f6dfa8bd5a682d291d36a42c21 (patch) | |
tree | cd3a944cf99155cc8119367a691acfc6812e3e5d /roles/dnf_automatic/files/usr/local/sbin | |
parent | 846513e1b752f6992f09db8bf1737fc5b94eff1c (diff) | |
download | selfhosted-5690b861e33550f6dfa8bd5a682d291d36a42c21.tar.gz selfhosted-5690b861e33550f6dfa8bd5a682d291d36a42c21.zip |
dnf_automatic: restart auditd via service command
Diffstat (limited to 'roles/dnf_automatic/files/usr/local/sbin')
-rw-r--r-- | roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart | 2 |
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 |