/var/log/motion.log {
    missingok
    notifempty
    compress
    size 10M
    create 0600 root root
    postrotate
        /usr/bin systemctl reload-or-try-restart motion.service  >/dev/null  2>&1 || true
    endscript
}
