-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
v3_EN_LogRotate
winlin edited this page Dec 8, 2016
·
17 revisions
SRS always writes log to a single log file srs.log
, so it will become very larger. We can use rotate the log to zip or remove it.
- First, move the log file to another tmp log file:
mv objs/srs.log /tmp/srs.`date +%s`.log
- Then, send signal to SRS. SRS will close the previous file fd and reopen the log file:
killall -s SIGUSR1
- Finally, zip or remove the tmp log file.
Winlin 2016.12
Welcome to SRS wiki!
Please select your language:
Please select your language:
Please select your language:
Please select your language:
Please select your language: