Linux 101 : Configuring a service to initiate after the networking - network-online.target -
The services of systemd live in the "/lib/systemd/system/" and "/usr/lib/systemd/system/" directories.
Setting a service to start after the networking:
We would need to edit the configuration file of the service.
To do so we use:
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:
Comments