From d0bd096dc465c6746510c4ffb9566827139ce719 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Mon, 13 Nov 2023 13:10:46 -0500 Subject: [PATCH] Restart rsyslog.service after config change --- rpm_spec/subpackages/manageiq-appliance | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpm_spec/subpackages/manageiq-appliance b/rpm_spec/subpackages/manageiq-appliance index b4b096f5..9e353f56 100644 --- a/rpm_spec/subpackages/manageiq-appliance +++ b/rpm_spec/subpackages/manageiq-appliance @@ -85,6 +85,9 @@ fi # Disable rsyslog duplicating systemd-journal output # This will comment out the multi-line module load from /etc/rsyslog.conf sed -i '/module(load="imjournal"/, /StateFile="imjournal.state")/ s|^|#|' %{_sysconfdir}/rsyslog.conf +if systemctl is-active --quiet rsyslog; then + systemctl restart rsyslog +fi %files appliance %defattr(-,root,root,-)