Skip to content

Commit 5e153cc

Browse files
author
Alessandro Chitolina
committed
do not terminate if pid file sets execution to the currently running process (docker)
1 parent 3012efa commit 5e153cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/EventListener/AlreadyInExecutionChecker.php

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public function onPreStart()
3333
return;
3434
}
3535

36+
if (posix_getpid() === $pid) {
37+
return;
38+
}
39+
3640
if (posix_kill($pid, 0)) {
3741
throw new \RuntimeException("Rabbitd is already running with PID #$pid");
3842
}

0 commit comments

Comments
 (0)