base-files: uci-defaults: enable log rotation every 10 minutes
Backport cron job setup from commit fb0a7d7bcc84 ("profiles: prpl: fix
various issues in syslog-ng and tr069-manager").
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 2a93b4289725466a1bab6b815afcf3ed7c93a0c4)
This commit is contained in:
parent
aaec2d19f5
commit
4c15bddd17
@ -0,0 +1,4 @@
|
||||
grep -s -q /usr/sbin/logrotate /etc/crontabs/root && exit 0
|
||||
echo "# logrotate runs every 10 minutes" >> /etc/crontabs/root
|
||||
echo "*/10 * * * * /usr/sbin/logrotate /etc/logrotate.conf" >> /etc/crontabs/root
|
||||
exit 0
|
||||
Loading…
Reference in New Issue
Block a user