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:
committed by
Tobias Brunner
parent
4eb09d14e2
commit
a25047e412
@@ -401,7 +401,6 @@ int main(int argc, char *argv[])
|
|||||||
if (check_pidfile())
|
if (check_pidfile())
|
||||||
{
|
{
|
||||||
DBG1(DBG_DMN, "charon already running (\""PID_FILE"\" exists)");
|
DBG1(DBG_DMN, "charon already running (\""PID_FILE"\" exists)");
|
||||||
status = -1;
|
|
||||||
goto deinit;
|
goto deinit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user