On Di, 23.01.18 09:09, Reindl Harald (h.rei...@thelounge.net) wrote: > > I got in the configuration file > > > > [Unit] > > After=network.target > > > > Isn't this enough to get the initialization order right? > > no, the target does more or less nothing useful
Well, it doesn't do what Yubin assumes it does, but it certainly does something "useful": while it doesn't make the network *connectivity* is up, it does make sure the network *subsystem* is. And that does have uses: during shutdown it makes sure that your service is terminated before the network subsystem goes away. During start-up otoh it is indeed with little effect usually. > depeding on how your network is configured use "network.service" or > "networkmanager.service" (or however the networkmanager service is called in > detail, i don#t use it) Nope. Use "network-online.target" if you are looking for a generic unit to order after that is reached only after the network has been "configured" for the first time, for some vague definition of "configured", that is up to the networking implementation to fill with sense... Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel