Until now Polypheny used the port 7659 to determine if another instance is running and would then refuse to start. This approach fails to detect instances using other ports. This is especially a problem, if one of these instances were to use the same home directory. So to prevent this, create a .lock file in the home directory and lock it using facilities provided by the operating system. This way each home directory can only be used by one instance at a time.
There are also various other small improvements.
There is also a corresponding UI PR because a field is renamed.
Summary
Until now Polypheny used the port 7659 to determine if another instance is running and would then refuse to start. This approach fails to detect instances using other ports. This is especially a problem, if one of these instances were to use the same home directory. So to prevent this, create a
.lock
file in the home directory and lock it using facilities provided by the operating system. This way each home directory can only be used by one instance at a time.There are also various other small improvements.
There is also a corresponding UI PR because a field is renamed.