File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,6 @@ START=19
1010STOP=82
1111NAME=smartdns
1212USE_PROCD=1
13- SERVICE_USE_PID=1
14- SERVICE_WRITE_PID=1
15- SERVICE_DAEMONIZE=1
16- SERVICE_PID_FILE=" /run/smartdns.pid"
17- if [ ! -d " /run" ]; then
18- SERVICE_PID_FILE=" /var/run/smartdns.pid"
19- fi
2013
2114SMARTDNS_DOWNLOAD_TMP_DIR=" /tmp/smartdns-download"
2215SMARTDNS_DEFAULT_FORWARDING_FILE=" /etc/smartdns/domain-forwarding.list"
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ After=syslog.target network-online.target
4141[Service]
4242Type= simple
4343ExecStart= /usr/sbin/smartdns -c /etc/smartdns/smartdns.conf -f
44- PIDFile= /run/smartdns.pid
4544Restart= on-failure
4645KillMode= process
4746
Original file line number Diff line number Diff line change @@ -8,10 +8,9 @@ StartLimitBurst=0
88StartLimitIntervalSec=60
99
1010[Service]
11- Type=forking
12- PIDFile=@RUNSTATEDIR@/smartdns.pid
11+ Type=exec
1312EnvironmentFile=@SYSCONFDIR@/default/smartdns
14- ExecStart=@SBINDIR@/smartdns -p @RUNSTATEDIR@/smartdns.pid $SMART_DNS_OPTS
13+ ExecStart=@SBINDIR@/smartdns $SMART_DNS_OPTS -f
1514Restart=always
1615RestartSec=2
1716TimeoutStopSec=15
You can’t perform that action at this time.
0 commit comments