aboutsummaryrefslogtreecommitdiffstats
path: root/community/k3s/k3s.logrotate
blob: e1afda9117551dccaad3745dcd5b04f934cb891f (plain)
1
2
3
4
5
6
7
8
9
10
11
# Restart as there's no way to signal k3s to re-open log file
#   https://github.com/OpenRC/openrc/issues/341
#   https://github.com/rancher/k3os/issues/433
/var/log/k3s.log {
        missingok
        notifempty
        sharedscripts
        postrotate
                /etc/init.d/k3s --quiet --ifstarted restart || true
        endscript
}