forked from openenergymonitor/emonpi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogrotate.conf
More file actions
executable file
·31 lines (21 loc) · 785 Bytes
/
logrotate.conf
File metadata and controls
executable file
·31 lines (21 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# NOT USED - SEE https://github.com/emoncms/emoncms/blob/master/scripts/logger/
# emonPi logrotate config
# default is daily run, move cron script to make this happen hourly:
# sudo mv /etc/cron.daily/logrotate /etc/cron.hourly/logrotate
# keep 2 rotations worth of backlogs (size x 2)
rotate 2
# Max size of log file (rotate log file when this size is reached)
size 1M
# Truncate the original log file in place after creating a copy
copytruncate
# Do not mail logfile
nomail
# log owners
su root
# Don't rotate if empty or notify if missing
missingok
notifempty
# Include package specefic logrotate config
#include /etc/logrotate.d
# Include all logs including 1 level deep subdirectorys
/var/log/*.log /var/log/*/*.log /var/log/syslog /var/log/messages /var/log/btmp {}