-
-
Save tutugreen/863d7e59be0f2870eabf9190cb02fe30 to your computer and use it in GitHub Desktop.
Systemd unit file for chinadns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Systemd unit file for chinadns | |
# CentOS7 OK | |
[Unit] | |
Description=Protect yourself against DNS poisoning in China | |
After=syslog.target network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/local/bin/chinadns -b 127.0.0.1 -p 5353 -c /etc/ChinaDNS/chnroute.txt -v | |
ExecStop=/bin/kill -15 $MAINPID | |
User=nobody | |
Group=nobody | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment