You actually don't need the service. It does nothing but running the Ruby script once so all connected MIDI devices get detected on startup. After that udev takes over for detecting new devices. Quickest fix would be to unplug a MIDI device and plug it in again to have everything detected again. And does the Ruby script issue an error code when it fails? If so then the systemd service file could be improved by adding restart directives.
Statistics: Posted by autostatic — Sat Jan 06, 2024 10:20 am