Adding logrotation

How about adding logrotation to /var/log/pwn* ??

something like:

/var/log/pwnagotchi.log
{
        rotate 4
        size 100M
        missingok
        notifempty
        compress
        sharedscripts
        postrotate
                /bin/systemctl restart pwnagotchi.service
        endscript
}

/var/log/pwngrid-peer.log
{
        rotate 4
        size 100M
        missingok
        notifempty
        compress
        sharedscripts
        postrotate
                /bin/systemctl restart pwngrid-peer.service
        endscript
}

We could add this to the builder/data/-structure and the auto-plugin could do it’s magic.

2 Likes

nope, we need to handle this ourselves from code otherwise we risk to break session data into multiple files

1 Like