Restarting a Systemd Service

Here’s how to restart a service so that it loads the last configuration.

In this example, we’ll restart the avahi-daemon mDNS service.

sudo systemctl restart avahi-daemon