Systemd Service Dependency On Device

In my SailfishOS port for Motorola Photon Q there was a dependency issue. Sometimes the mce service was starting before the LEDs become available and as a result they were not used. I solved the issue by creating a dependency on one of the LEDs for the mce service.
In general, in order to add a systemd service dependency on a device do the following:
(more…)