You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, I try to start a second instance of CB, running again contextBroker -pidpath /tmp/pidfile1.pid -fg. Of course, it fails, as the port is already in use:
Now I run a second instance in a free port with ontextBroker -pidpath /tmp/pidfile1.pid -fg -port 1027 so the second instance runs. The situation is now:
i,e. the second instance has overriden the file and the reference to the first instance PID has lost.
Fix
Context Broker should check that PID file doesn't exist at the very begining (either before to check other error conditions as if the port is free). If exist, it has to exit with an error message without touching the PID file.
The text was updated successfully, but these errors were encountered:
Case 1
Let's start CB using a given PID file:
PID file is correctly filled:
Now, I try to start a second instance of CB, running again
contextBroker -pidpath /tmp/pidfile1.pid -fg
. Of course, it fails, as the port is already in use:However, PID file has lost its content, while the first instance is still running:
Case 2
Let's start CB using a given PID file:
PID file is correctly filled:
Now I run a second instance in a free port with
ontextBroker -pidpath /tmp/pidfile1.pid -fg -port 1027
so the second instance runs. The situation is now:i,e. the second instance has overriden the file and the reference to the first instance PID has lost.
Fix
Context Broker should check that PID file doesn't exist at the very begining (either before to check other error conditions as if the port is free). If exist, it has to exit with an error message without touching the PID file.
The text was updated successfully, but these errors were encountered: