Make: update script mode

This commit is contained in:
Nick Peng
2021-08-08 15:45:14 +08:00
parent 8c271e34c1
commit 106ec6789c
8 changed files with 24 additions and 0 deletions

19
systemd/smartdns.service Normal file
View File

@@ -0,0 +1,19 @@
[Unit]
Description=SmartDNS Server
After=network.target
StartLimitBurst=0
StartLimitIntervalSec=60
[Service]
Type=forking
PIDFile=/var/run/smartdns.pid
EnvironmentFile=/etc/default/smartdns
ExecStart=/usr/sbin/smartdns -p /var/run/smartdns.pid $SMART_DNS_OPTS
KillMode=process
Restart=always
RestartSec=2
TimeoutStopSec=5
[Install]
WantedBy=multi-user.target
Alias=smartdns.service