In this article
Take these steps while installing the DNSFilter Relay to setup auto-start in Linux environments.
- Download the relay binary and put it somewhere known. For the sake of example:
/etc/relay/relay-linux-amd64
- Create a file called
/etc/systemd/system/dnsfrelay.service
- Add this block to the file:
[Unit]
Description=DNSFilter Relay Service
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=/etc/relay/relay-linux-amd64
[Install]
WantedBy=multi-user.target -
Start the service:
systemctl start dnsfrelay
- Set the service to start on boot:
systemctl enable dnsfrelay
The Relay will now start with the system.
Comments
0 comments
Please sign in to leave a comment.