Post History
I have a systemd unit that does some stuff on the internet. Sometimes this gets fired at startup. I want to make sure it's delayed until the computer is connected to the internet. In my notes I fo...
Question
systemd
#1: Initial revision
Systemd unit needs to start at boot but wait for network
I have a systemd unit that does some stuff on the internet. Sometimes this gets fired at startup. I want to make sure it's delayed until the computer is connected to the internet. In my notes I found: ``` Wants=network-online.target After=network-online.target nss-lookup.target ``` Is this the way to do it? Do I need both `Wants` and `After`? Do I need anything else? I've read over the manual for both systemd units and timers many times. It makes my head spin, it's too complicated. The section about depending on the network is even worse, a bunch of lecturing about implementation details that I would expect systemd devs to hide from me, without a clear answer. I'm expecting answers to *summarize* the pertinent parts :)