Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions package/openwrt/files/etc/init.d/smartdns
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ START=19
STOP=82
NAME=smartdns
USE_PROCD=1
SERVICE_USE_PID=1
SERVICE_WRITE_PID=1
SERVICE_DAEMONIZE=1
SERVICE_PID_FILE="/run/smartdns.pid"
if [ ! -d "/run" ]; then
SERVICE_PID_FILE="/var/run/smartdns.pid"
fi

SMARTDNS_DOWNLOAD_TMP_DIR="/tmp/smartdns-download"
SMARTDNS_DEFAULT_FORWARDING_FILE="/etc/smartdns/domain-forwarding.list"
Expand Down
1 change: 0 additions & 1 deletion package/redhat/smartdns.spec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ After=syslog.target network-online.target
[Service]
Type=simple
ExecStart=/usr/sbin/smartdns -c /etc/smartdns/smartdns.conf -f
PIDFile=/run/smartdns.pid
Restart=on-failure
KillMode=process

Expand Down
5 changes: 2 additions & 3 deletions systemd/smartdns.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ StartLimitBurst=0
StartLimitIntervalSec=60

[Service]
Type=forking
PIDFile=@RUNSTATEDIR@/smartdns.pid
Type=exec
EnvironmentFile=@SYSCONFDIR@/default/smartdns
ExecStart=@SBINDIR@/smartdns -p @RUNSTATEDIR@/smartdns.pid $SMART_DNS_OPTS
ExecStart=@SBINDIR@/smartdns $SMART_DNS_OPTS -f
Restart=always
RestartSec=2
TimeoutStopSec=15
Expand Down
Loading