Look into udev rules so that openHAB will always be configured to use the correct serial port.
https://docs.openhab.org/addons/bindings/serial1/readme.html#linux-users