stepping-stone / configuration-overlay

An overlay for package configuration files to provide customized default configurations and configuration templates for further deployment.
0 stars 1 forks source link

Run logrotate cronjob at fixed times rather than in cron.daily #2

Open dukje opened 11 years ago

dukje commented 11 years ago

Use a logrotate file in /etc/cron.d/ with a fixed time rather than a one that is run anytime every day in /etc/cron.daily/.

old /etc/cron.daily/logrotate.cron

#! /bin/sh
/usr/sbin/logrotate /etc/logrotate.conf

new /etc/cron.d/logrotate

# logrotate the logs
51 23 * * *     logrotate /etc/logrotate.conf
paescuj commented 10 years ago

Does anybody know what the idea/reason behind this measure was?