2020-12-01 11:00:48 -08:00
|
|
|
#roll_apache_logs Utility
|
2020-12-01 10:58:30 -08:00
|
|
|
|
|
|
|
Rolls apache logs...
|
|
|
|
|
2020-12-01 11:00:48 -08:00
|
|
|
##Install
|
2020-12-01 10:58:30 -08:00
|
|
|
|
2020-12-01 11:00:48 -08:00
|
|
|
cd /tmp
|
|
|
|
fetch https://gitea.sierraweb.com/api/v1/repos/haroldp/roll_apache_logs/archive/master.tar.gz
|
|
|
|
tar -zxvf master.tar.gz
|
|
|
|
cd roll_apache_logs
|
|
|
|
cp roll_apache_logs.pl /usr/local/bin/roll_apache_logs
|
|
|
|
cat crontab.in >> /etc/crontab
|
|
|
|
pkg install p5-Logfile-Rotate
|
|
|
|
rm -rf /tmp/roll_apache_logs
|
2020-12-01 10:58:30 -08:00
|
|
|
|
2020-12-01 11:00:48 -08:00
|
|
|
##To Do
|
2020-12-01 10:58:30 -08:00
|
|
|
|
|
|
|
Expire old logs(!)
|
|
|
|
Apache configtest reloads(!)
|