Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
2aa73c46
Commit
2aa73c46
authored
Jun 19, 2017
by
Jonathan Gazeley
Browse files
Delete unused template
parent
5a7c229e
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/radiusd.logrotate.erb
deleted
100644 → 0
View file @
5a7c229e
# You can use this to rotate the
<%=
@fr_logpath
%>
/* files, simply copy
# it to /etc/logrotate.d/radiusd
# There are different detail-rotating strategies you can use. One is
# to write to a single detail file per IP and use the rotate config
# below. Another is to write to a daily detail file per IP with:
# detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
# (or similar) in radiusd.conf, without rotation. If you go with the
# second technique, you will need another cron job that removes old
# detail files. You do not need to comment out the below for method #2.
<%=
@fr_logpath
%>
/radacct/*/*.log {
daily
rotate 7
nocreate
missingok
compress
}
<%=
@fr_logpath
%>
/checkrad.log {
weekly
rotate 1
create
missingok
compress
}
<%=
@fr_logpath
%>
/radius*.log {
weekly
rotate 26
create
missingok
compress
}
<%=
@fr_logpath
%>
/radutmp {
weekly
rotate 1
create
compress
missingok
}
<%=
@fr_logpath
%>
/radwtmp {
weekly
rotate 1
create
compress
missingok
}
<%=
@fr_logpath
%>
/sqltrace.sql {
weekly
rotate 1
create
compress
missingok
}
lastrotate
if [ -e /var/run/radiusd/radiusd.pid ] then; kill -HUP `cat /var/run/radiusd/radiusd.pid`; fi;
endscript
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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