- Copy the service file to the systemd service dir
sudo cp ~/dnsserv/scripts/dnsserv-server.service /etc/systemd/system/dnsserv.service
- Enable the service
sudo systemctl enable /etc/systemd/system/dnsserv.service
- Start the service
sudo systemctl start dnsserv.service
If the systemd service file is updated:
- Copy the updated file
sudo cp ~/dnsserv/scripts/dnsserv-server.service /etc/systemd/system/dnsserv.service
- Reload the daemon
sudo systemctl daemon-reload