Add systemd script

This commit is contained in:
Nick Peng
2018-06-16 02:36:04 +08:00
parent 53df9f7063
commit 7b62739c13
34 changed files with 746 additions and 869 deletions

14
systemd/smartdns.service Normal file
View File

@@ -0,0 +1,14 @@
[Unit]
Description=smart dns server
After=network.target
[Service]
PIDFile=/var/run/smartdns.pid
EnvironmentFile=/etc/default/smartdns
ExecStart=/usr/sbin/smartdns $SMART_DNS_OPTS
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=smartdns.service