Table of Contents

Creating a systemd service

Make the service restart always

Restart Always in service has limits. Kill 'em limits:

Make a service start after a USB connection

ACTION=="add", ATTR{idVendor}=="0582", ATTR{idProduct}=="01d6", TAG+="systemd", ENV{SYSTEMD_WANTS}="jackd.service"

source

Make a service start after USB device initializes on bootup

Example

source

References