mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
default write log to file.
This commit is contained in:
parent
76290a5a12
commit
ed20bd7078
3 changed files with 12 additions and 10 deletions
|
@ -61,6 +61,10 @@ int run_master()
|
|||
signal(SIGTERM, handler);
|
||||
signal(SIGINT, handler);
|
||||
|
||||
if ((ret = _srs_server->acquire_pid_file()) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
if ((ret = _srs_server->initialize_st()) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
@ -161,9 +165,5 @@ int main(int argc, char** argv)
|
|||
return ret;
|
||||
}
|
||||
|
||||
if ((ret = _srs_server->acquire_pid_file()) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
return run();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue