Start service dependent on network

Is it possible to make a service start only if there is network connection?

Yes include
After=network-online.target
in your .service

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.