The services of systemd live in the "/lib/systemd/system/" and "/usr/lib/systemd/system/directories.

Setting a service to start after the networking:

To set a service to start after the networking processes have started,
We would need to edit the configuration file of the service. 
To do so we use:


And we add the below line to the configuration file:


For the changes to take effect, we use the below command to restart the systemd service:


The network-online.target is a target which is comparable to the runlevels in the SysVinit system. 

Runlevels to Targets correspondance:

We can see that the runlevels are symbolic links to the systemd targets as below:


Brando Sabatini and Ikbal C ©. Powered by Blogger.