File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ RUN pip3 install -U pip && pip3 install -r /opt/registry/requirements.txt
2828# Use our weird grid-security cert/key location
2929RUN rm /etc/httpd/conf.d/ssl.conf
3030
31- # Setup cron job for logrotate to run every 5 minutes
32- RUN crontab -l | { cat; echo "* * * * * /usr/sbin/logrotate /etc/logrotate.d/httpd >> /var/log/cron 2>&1"; } | crontab -
31+ # Setup cron job for logrotate to run as root every day
32+ RUN echo "0 0 * * * root /usr/sbin/logrotate /etc/logrotate.d/httpd >> /var/log/cron 2>&1" > /etc/cron.d/logrotate-httpd
3333
3434COPY register.py /usr/bin
3535COPY supervisor-apache.conf /etc/supervisord.d/40-apache.conf
Original file line number Diff line number Diff line change 11/var/log/httpd/*.log {
2- maxsize 10K
3- dateext
4- dateformat -%Y%m%d-%s
5- rotate 2
2+ maxsize 100M
3+ rotate 20
64 missingok
75 notifempty
86 compress
97 delaycompress
108 sharedscripts
119 postrotate
12- PID=$(pgrep -o httpd) && kill -USR1 $PID
10+ PID=$(pgrep -o httpd); if [ "$PID" ]; then kill -USR1 $PID; fi
1311 endscript
1412}
You can’t perform that action at this time.
0 commit comments