diff options
| author | Tommy Miland <kontakt@tmiland.com> | 2020-03-02 16:19:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-02 09:19:07 -0600 |
| commit | c620a22017012a0dfcd0c3c89017a17587fe7b0e (patch) | |
| tree | 53477b375335670de15efdcde9a5e0b84aa1bd3d /README.md | |
| parent | 856ec03cc7641e8e39db42690e04bfbd11032afd (diff) | |
| download | invidious-c620a22017012a0dfcd0c3c89017a17587fe7b0e.tar.gz invidious-c620a22017012a0dfcd0c3c89017a17587fe7b0e.tar.bz2 invidious-c620a22017012a0dfcd0c3c89017a17587fe7b0e.zip | |
Add logfile to logrotate (#892)
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |
