rancher / os

Tiny Linux distro that runs the entire OS as Docker containers
https://rancher.com/docs/os/v1.x/en/
Apache License 2.0
6.44k stars 655 forks source link

Rotate /var/log/messages #329

Closed Nicofuma closed 7 years ago

Nicofuma commented 9 years ago

I think that /var/log/messages should/could be rotate (maybe between each reboot?)

By the way, a logrotate service could be a must ;)

EDIT: it's the same for docker.log and system-docker.log

ibuildthecloud commented 9 years ago

Definitely on the todo list, PR's welcome :)

Logrotate is already packaged in RancherOS, we just have yet to create a container for it. If your adventurous you can try to create a logrotate service at https://github.com/rancherio/os/tree/master/scripts/dockerimages and then add it to config/default.go

Nicofuma commented 9 years ago

I have to finish to set up my server before. But why not after if it hasn't been already done ^^

SvenDowideit commented 7 years ago

@Nicofuma its in https://github.com/rancher/os/releases/tag/v1.1.0-rc2

implemented in https://github.com/rancher/os/pull/1966