Add nss-lookup.target as dependency for service

This commit is contained in:
Brainos
2023-08-13 11:17:32 +08:00
committed by Nick Peng
parent 1ba6ee7cb9
commit c19a39a447

View File

@@ -1,6 +1,9 @@
[Unit] [Unit]
Description=SmartDNS Server Description=SmartDNS Server
After=network.target After=network.target
Before=network-online.target
Before=nss-lookup.target
Wants=nss-lookup.target
StartLimitBurst=0 StartLimitBurst=0
StartLimitIntervalSec=60 StartLimitIntervalSec=60
@@ -8,7 +11,7 @@ StartLimitIntervalSec=60
Type=forking Type=forking
PIDFile=@RUNSTATEDIR@/smartdns.pid PIDFile=@RUNSTATEDIR@/smartdns.pid
EnvironmentFile=@SYSCONFDIR@/default/smartdns EnvironmentFile=@SYSCONFDIR@/default/smartdns
ExecStart=@SBINDIR@/smartdns -p @RUNSTATEDIR@/smartdns.pid $SMART_DNS_OPTS ExecStart=@SBINDIR@/smartdns -p @RUNSTATEDIR@/smartdns.pid $SMART_DNS_OPTS
Restart=always Restart=always
RestartSec=2 RestartSec=2
TimeoutStopSec=15 TimeoutStopSec=15