From c620a22017012a0dfcd0c3c89017a17587fe7b0e Mon Sep 17 00:00:00 2001 From: Tommy Miland Date: Mon, 2 Mar 2020 16:19:07 +0100 Subject: [PATCH] Add logfile to logrotate (#892) --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index bc4b7b28..29e359bf 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,20 @@ $ sudo systemctl enable invidious.service $ sudo systemctl start invidious.service ``` +#### Logrotate + +```bash +$ sudo echo "/home/invidious/invidious/invidious.log { +rotate 4 +weekly +notifempty +missingok +compress +minsize 1048576 +}" | tee /etc/logrotate.d/invidious.logrotate +$ sudo chmod 0644 /etc/logrotate.d/invidious.logrotate +``` + ### OSX: ```bash