I have a program running on Raspbian Stretch, talking to a mobile phone via USB, using a specialized protocol implemented on top of libusb.
I'd like the program to run on startup, so I make up a systemd service file, but not sure what target it should run after:
[Unit]
Description=My Program
After=network.target <-- ???
[Service]
ExecStart=/home/pi/myprogram
User=root
[Install]
WantedBy=multi-user.target
This content can do the job, but what should it be after properly? How could I say "after USB is ready"?
Most info I can find on the web is about setting up udev rules, which I understand is to load a kernel module on seeing a certain device, which I don't think is what I want.
Any help is appreciated.