Commit 16bd9ef9 authored by Tim Smith's avatar Tim Smith

Fix the systemd detection logic

🤦Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent 672c7325
......@@ -127,7 +127,7 @@ when 'rhel', 'fedora', 'amazon'
'local7.*' => "#{node['rsyslog']['default_log_dir']}/boot.log",
}
# journald is used in systemd
if node['init_package'] != 'systemd'
if node['init_package'] == 'systemd'
default['rsyslog']['modules'] = %w(imuxsock imjournal)
default['rsyslog']['additional_directives'] = { 'OmitLocalLogging' => 'on', 'IMJournalStateFile' => 'imjournal.state' }
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment