Prevent a race condition when writing the rsyslog.conf

This commit is contained in:
Christian Adams
2020-05-05 15:38:26 -04:00
parent c565130b35
commit e41d33991a
2 changed files with 5 additions and 3 deletions

View File

@@ -288,7 +288,7 @@ def handle_setting_changes(setting_keys):
setting.startswith('LOG_AGGREGATOR')
for setting in setting_keys
]):
connection.on_commit(reconfigure_rsyslog)
reconfigure_rsyslog()
@task(queue='tower_broadcast_all')