summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorTomas Krizek <tomas.krizek@nic.cz>2019-07-02 17:43:41 +0200
committerTomas Krizek <tomas.krizek@nic.cz>2019-07-02 17:43:41 +0200
commit876b9c07df1b88fe21acb862c6feec8d594cdf0c (patch)
treece209ec2eaab205d9d6171e15213103823e68a25 /systemd
parentMerge !836: sandbox: fix missing default class in resolve() function (diff)
downloadknot-resolver-876b9c07df1b88fe21acb862c6feec8d594cdf0c.tar.xz
knot-resolver-876b9c07df1b88fe21acb862c6feec8d594cdf0c.zip
systemd: kill kresd@* service if unresponsive when stopping
Diffstat (limited to 'systemd')
-rw-r--r--systemd/kresd@.service.in1
-rw-r--r--systemd/nosocket/kresd@.service.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/systemd/kresd@.service.in b/systemd/kresd@.service.in
index 9634f6dd..e94f2337 100644
--- a/systemd/kresd@.service.in
+++ b/systemd/kresd@.service.in
@@ -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
diff --git a/systemd/nosocket/kresd@.service.in b/systemd/nosocket/kresd@.service.in
index 3d34eb08..dd7f16a4 100644
--- a/systemd/nosocket/kresd@.service.in
+++ b/systemd/nosocket/kresd@.service.in
@@ -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