mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add logfile to logrotate (#892)
This commit is contained in:
parent
856ec03cc7
commit
c620a22017
1 changed files with 14 additions and 0 deletions
14
README.md
14
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
|
||||
|
|
Loading…
Reference in a new issue