From: Martin Kelly Date: Tue, 14 Nov 2017 19:56:18 +0000 (+0100) Subject: tcf-agent: kill with USR2 in systemd stop X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3c9d850af1c8dab9d46ddb136d84710e7f73fa2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Ross Burton Signed-off-by: Javier Viguera Signed-off-by: Armin Kuster --- 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 fd9a6c4d565..a486ac7bad6 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