Commit b5520097 authored by Karl Kornel's avatar Karl Kornel
Browse files

base::syslog: Add stuff for Ubuntu

parent 7761bb8d
......@@ -13,11 +13,24 @@ $ModLoad imklog
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
# Default permissions for log files.
<% if ( @operatingsystem == 'Ubuntu' ) %>
$FileOwner syslog
$FileGroup adm
$Umask 0022
$PrivDropToUser syslog
$PrivDropToGroup syslog
<% else %>
$FileOwner root
$FileGroup root
<% end %>
$WorkDirectory /var/spool/rsyslog
$FileCreateMode 0640
$DirCreateMode 0755
$WorkDirectory /var/spool/rsyslog
<% if ( @operatingsystem == 'Ubuntu' ) %>
# Enable non-kernel facility klog messages
$KLogPermitNonKernelFacility on
<% end %>
<%# Disable rate limiting on >= Debian Wheezy, Ubuntu Precise and RHEL6. -%>
<% if ( @operatingsystem == 'Ubuntu' && @lsbmajdistrelease.to_i() >= 12 ) ||
......
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