]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
systemd: kill kresd@* service if unresponsive when stopping
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 2 Jul 2019 15:43:41 +0000 (17:43 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 2 Jul 2019 15:43:41 +0000 (17:43 +0200)
systemd/kresd@.service.in
systemd/nosocket/kresd@.service.in

index 9634f6ddeb4fb0d23728ee31a65935f3954f7b8f..e94f23376850e617f5bb4396f24417640b64126f 100644 (file)
@@ -8,6 +8,7 @@ Type=notify
 WorkingDirectory=@systemd_work_dir@
 ExecStart=@sbin_dir@/kresd --config=@etc_dir@/kresd.conf
 User=@user@
+TimeoutStopSec=10s
 WatchdogSec=10s
 Restart=on-abnormal
 Sockets=kresd.socket
index 3d34eb084abafddddc5ff59a02ef6a130be6bb65..dd7f16a423d66bcce229350455a0b39ee73b7c4b 100644 (file)
@@ -7,6 +7,7 @@ Documentation=man:kresd(8)
 Type=notify
 WorkingDirectory=@systemd_work_dir@
 ExecStart=@sbin_dir@/kresd --config=@etc_dir@/kresd.conf --forks=1
+TimeoutStopSec=10s
 WatchdogSec=10s
 Restart=on-abnormal