mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support daemon
This commit is contained in:
parent
2c1354b9b9
commit
3ec3c1f532
5 changed files with 102 additions and 29 deletions
|
@ -1282,6 +1282,18 @@ string SrsConfig::get_srs_log_file()
|
|||
return conf->arg0();
|
||||
}
|
||||
|
||||
bool SrsConfig::get_deamon()
|
||||
{
|
||||
srs_assert(root);
|
||||
|
||||
SrsConfDirective* conf = root->get("deamon");
|
||||
if (conf && conf->arg0() == "off") {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
int SrsConfig::get_max_connections()
|
||||
{
|
||||
srs_assert(root);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue