Mikrotik Woobm (https://mikrotik.com/product/woobm) is a device providing out of band management to Mikrotik Routerboard having USB port. The device can also be used with any linux system to provide out of band management in the same manner.
In this article, a Raspberry Pi will be used as an example. The goal is to start a serial terminal server when the Woobm is plugged in and stop the service when Woobm is removed.
Create udev rules for the device. Create file /etc/udev/rules.d/42-woobm.rules