Skip to content

Commit

Permalink
Merge pull request #426 from agrare/disable_imjournal_module_rsyslog
Browse files Browse the repository at this point in the history
Disable rsyslog duplication of systemd-journal
  • Loading branch information
bdunne authored Jul 8, 2024
2 parents 0566240 + f2bd3c8 commit 7da1e9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rpm_spec/subpackages/manageiq-appliance
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ if systemctl is-active --quiet evm-failover-monitor; then
systemctl restart evm-failover-monitor
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"/, /^\s+StateFile="imjournal.state")/ s|^|#|' %{_sysconfdir}/rsyslog.conf
if systemctl is-active --quiet rsyslog; then
systemctl restart rsyslog
fi

%files appliance
%defattr(-,root,root,-)
%{_sysconfdir}/default/manageiq-appliance.properties
Expand Down

0 comments on commit 7da1e9c

Please sign in to comment.