[OE-core] [morty backport][PATCH 1/2] tcf-agent: kill with USR2 in systemd stop
Javier Viguera
javier.viguera at digi.com
Tue Nov 14 19:56:18 UTC 2017
From: Martin Kelly <mkelly at xevo.com>
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 at xevo.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Javier Viguera <javier.viguera at digi.com>
---
meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service | 2 ++
1 file changed, 2 insertions(+)
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 fd9a6c4d565b..a486ac7bad63 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
More information about the Openembedded-core
mailing list