aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kelly <mkelly@xevo.com>2017-11-14 20:56:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-21 14:42:59 +0000
commitf3c9d850af1c8dab9d46ddb136d84710e7f73fa2 (patch)
treef90727b26289e41da6059af17f30814ecb905003
parentc32bca840d262ebc5ac93b06d0bce79729a178b1 (diff)
downloadopenembedded-core-f3c9d850af1c8dab9d46ddb136d84710e7f73fa2.zip
openembedded-core-f3c9d850af1c8dab9d46ddb136d84710e7f73fa2.tar.gz
openembedded-core-f3c9d850af1c8dab9d46ddb136d84710e7f73fa2.tar.bz2
tcf-agent: kill with USR2 in systemd stop
tcf-agent ignores SIGTERM, so upstream uses USR2 instead. This issue was noticed by Jan Kiszka and Brian Avery around the same time: https://patchwork.openembedded.org/patch/139546/ https://patchwork.openembedded.org/patch/139560/ However, these patches fixed only the init scripts, not the systemd service file. This patch fixes the systemd file. Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Javier Viguera <javier.viguera@digi.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service b/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service
index fd9a6c4..a486ac7 100644
--- a/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service
+++ b/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service
@@ -5,6 +5,8 @@ After=network.target
[Service]
Type=forking
ExecStart=@SBINDIR@/tcf-agent -d -L- -l0
+KillSignal=USR2
+SuccessExitStatus=USR2
[Install]
WantedBy=multi-user.target