Add logrotate config
This commit is contained in:
parent
bf3068fdfa
commit
7002974f41
1 changed files with 12 additions and 0 deletions
|
@ -167,3 +167,15 @@
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
name: motion_hass.timer
|
name: motion_hass.timer
|
||||||
enabled: true
|
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
|
||||||
|
|
Loading…
Reference in a new issue