]> code.ossystems Code Review - openembedded-core.git/commitdiff
tcf-agent: kill with USR2 in systemd stop
authorMartin Kelly <mkelly@xevo.com>
Tue, 14 Nov 2017 19:56:18 +0000 (20:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Nov 2017 14:42:59 +0000 (14:42 +0000)
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>
meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service

index fd9a6c4d565b5ed09d9698da0fdcda4481ebcef6..a486ac7bad63a1d8f1926a06657b94038bdeb55e 100644 (file)
@@ -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