/var/log/mamonsu/mamonsu.log {
    daily
    rotate 7
    compress
    missingok
    notifempty
    create 0640 mamonsu mamonsu
    sharedscripts
    postrotate
        if [ -d "/run/systemd/system" -a -x "/bin/systemctl" ]; then
            /bin/systemctl condrestart mamonsu >/dev/null
        else
            /etc/init.d/mamonsu condrestart >/dev/null
        fi
    endscript
}
