I would like to start my service samplerbox.service
[Unit]
Description=Starts SamplerBox
[Service]
Type=simple
ExecStart=/root/SamplerBox/samplerbox.sh # this script does: python /root/SamplerBox/samplerbox.py
WorkingDirectory=/root/SamplerBox/
[Install]
WantedBy=multi-user.target
before networking.service (DHCP thing, IP attribution, etc.) has finished.
Remark: my program doesn't use networking at all.
Here is the plot (bigger size here):
http://gget.it/sb5sfgln/ets.svg
As you can see, samplerbox.service exactly waits for networking.service to be finished. (I did several tests, and it is the same).
I tried: replace WantedBy=multi-user.target by something else like
WantedBy=sound.target and then systemctl disable samplerbox.service and reenable it... But this was unsuccessful!
How to force a service to start before networking.service?
systemctl show networking– Basj May 30 '15 at 0:55WantedBy=networking.service? – Mikel May 30 '15 at 0:59[Install]WantedBy=networking.servicebut it's the same: gget.it/b4ld73lt/plot4.svg ... See bottom (CTRL+F, then "samplerbox") :samplerbox.serviceis again started after networking has finished... – Basj May 30 '15 at 9:30