[systemd-devel] Unable to get service to wait for a mount before starting

Andrei Borzenkov arvidjaar at gmail.com
Sun Nov 10 12:49:28 UTC 2024


10.11.2024 15:20, Adam Nielsen wrote:
> 
> I'm not sure what you mean by not having a proper network-online.target
> implementation.  I'm using the one distributed with systemd.  There
> aren't any other versions or overrides for it in use.  The unit in
> question specifies "After=network-online.target".
> 

network-online.target by itself does absolutely nothing. You are 
expected to have some service that is ordered 
Before=network-online.target and actually waits until network is online. 
Standard network management applications that asynchronously configure 
interfaces (NetworkManager, systemd-networkd) have matching services. 
Some implementations (like SUSE wicked) are synchronous and 
network-online.target is effectively noop. Nothing stops you from 
creating your own service that performs custom checks.


More information about the systemd-devel mailing list