Return SS_RC_INITIALIZATION_FAILED if pid file exists
Let charon return SS_RC_INITIALIZATION_FAILED if an existing pid file is found. Starter only terminates itself if the result code of the daemon is a valid SS_RC_* value.
This commit is contained in:
parent
4eb09d14e2
commit
a25047e412
|
@ -401,7 +401,6 @@ int main(int argc, char *argv[])
|
|||
if (check_pidfile())
|
||||
{
|
||||
DBG1(DBG_DMN, "charon already running (\""PID_FILE"\" exists)");
|
||||
status = -1;
|
||||
goto deinit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue