Added stuck MstConfLock semaphore recovery on boot by jaron.
This commit is contained in:
parent
fa41e02047
commit
ed773e1a19
1 changed files with 4 additions and 0 deletions
|
@ -230,6 +230,10 @@ int main(int argc, char ** argv){
|
|||
Controller::conf.getOption("prometheus", true)[0u] = Controller::Storage["config"]["controller"]["prometheus"];
|
||||
}
|
||||
Controller::Storage["config"]["controller"]["prometheus"] = Controller::conf.getString("prometheus");
|
||||
{
|
||||
IPC::semaphore configLock(SEM_CONF, O_CREAT | O_RDWR, ACCESSPERMS, 1);
|
||||
configLock.unlink();
|
||||
}
|
||||
Controller::writeConfig();
|
||||
Controller::checkAvailProtocols();
|
||||
createAccount(Controller::conf.getString("account"));
|
||||
|
|
Loading…
Add table
Reference in a new issue