mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support log rotate signal SIGUSR1. 3.0.8
This commit is contained in:
parent
9e9cad1826
commit
2955b1fd2d
9 changed files with 61 additions and 23 deletions
|
@ -325,10 +325,10 @@ public:
|
|||
* whatever, we will got the signo like the orignal signal(int signo) handler.
|
||||
* @param signo the signal number from user, where:
|
||||
* SRS_SIGNAL_GRACEFULLY_QUIT, the SIGTERM, dispose then quit.
|
||||
* SRS_SIGNAL_DISPOSE, the SIGUSR2, dispose for gmc.
|
||||
* SRS_SIGNAL_PERSISTENCE_CONFIG, the SIGUSR1, persistence config to file.
|
||||
* SRS_SIGNAL_REOPEN_LOG, the SIGUSR1, reopen the log file.
|
||||
* SRS_SIGNAL_RELOAD, the SIGHUP, reload the config.
|
||||
* @remark, for SIGINT and SRS_SIGNAL_DISPOSE:
|
||||
* SRS_SIGNAL_PERSISTENCE_CONFIG, application level signal, persistence config to file.
|
||||
* @remark, for SIGINT:
|
||||
* no gmc, directly exit.
|
||||
* for gmc, set the variable signal_gmc_stop, the cycle will return and cleanup for gmc.
|
||||
* @remark, maybe the HTTP RAW API will trigger the on_signal() also.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue