Skip to content

Commit 4e15ead

Browse files
committed
Bump the default frequency of the logrotate cron job
Since log rotation is based on date or size, this doesn't cause the logs to be rotated more frequently, it just causes logrotate to check for the rotation condition more frequently, allowing it to catch sudden growths in size. logrotate itself has locking so this should be safe.
1 parent e4a92d1 commit 4e15ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opensciencegrid/logrotate/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM almalinux:9
22

33
LABEL maintainer OSG Software <help@osg-htc.org>
44

5-
# Run Logrotate once per hour
6-
ENV CRON_EXPR="0 * * * *"
5+
# Run Logrotate every five minutes
6+
ENV CRON_EXPR="*/5 * * * *"
77
# Extra options to logrotate (if any)
88
ENV LOGROTATE_OPTIONS=
99
# File path(s) for LogRotate config files

0 commit comments

Comments
 (0)