Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lonlone Lee
base
Commits
b5520097
Commit
b5520097
authored
Aug 24, 2016
by
Karl Kornel
Browse files
base::syslog: Add stuff for Ubuntu
parent
7761bb8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/syslog/rsyslog.conf.erb
View file @
b5520097
...
...
@@ -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
)
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment