From baa1397fb0d748055d56042739f19aff3f69c4fe Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Thu, 10 Sep 2020 21:54:48 +0800 Subject: [PATCH] Move TimeoutStopSec to [Service] It belongs here. Setting it in [Unit] produces the following warning: ``` systemd[1]: /usr/lib/systemd/system/smartdns.service:6: Unknown key name 'TimeoutStopSec' in section 'Unit', ignoring. ``` --- systemd/smartdns.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/smartdns.service.in b/systemd/smartdns.service.in index 79e218c..450e0a0 100644 --- a/systemd/smartdns.service.in +++ b/systemd/smartdns.service.in @@ -3,7 +3,6 @@ Description=smartdns server After=network.target StartLimitBurst=0 StartLimitIntervalSec=60 -TimeoutStopSec=5 [Service] Type=forking @@ -13,6 +12,7 @@ ExecStart=@SBINDIR@/smartdns -p @RUNSTATEDIR@/smartdns.pid $SMART_DNS_OPTS KillMode=process Restart=always RestartSec=2 +TimeoutStopSec=5 [Install] WantedBy=multi-user.target