Add logrotate config

This commit is contained in:
Antonio J. Delgado 2023-03-17 15:53:28 +02:00
parent bf3068fdfa
commit 7002974f41

View file

@ -167,3 +167,15 @@
daemon_reload: true
name: motion_hass.timer
enabled: true
- name: Configure logrotate for HomeAssistant integration
blockinfile:
path: /etc/logrotate.d/motion_hass
block: |
/var/lib/motion/log/motion_hass.log {
daily
rotate 30
compress
}
create: true