From 72e4d6c436bf563d4858ba56361e8de305581075 Mon Sep 17 00:00:00 2001 From: Martin Kelly Date: Wed, 31 May 2017 20:28:00 +0900 Subject: tcf-agent: kill with USR2 in systemd stop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. Change-Id: Id59fab32ae78213efe98a646dce2eec0881720f6 Signed-off-by: Martin Kelly Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9597 Reviewed-by: José Bollo Reviewed-by: Changhyeok Bae Reviewed-by: Jan-Simon Moeller Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account --- .../recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service | 12 ++++++++++++ meta-agl/recipes-devtools/tcf-agent/tcf-agent_git.bbappend | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 meta-agl/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service create mode 100644 meta-agl/recipes-devtools/tcf-agent/tcf-agent_git.bbappend (limited to 'meta-agl') diff --git a/meta-agl/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service b/meta-agl/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service new file mode 100644 index 000000000..a486ac7ba --- /dev/null +++ b/meta-agl/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service @@ -0,0 +1,12 @@ +[Unit] +Description=Target Communication Framework agent +After=network.target + +[Service] +Type=forking +ExecStart=@SBINDIR@/tcf-agent -d -L- -l0 +KillSignal=USR2 +SuccessExitStatus=USR2 + +[Install] +WantedBy=multi-user.target diff --git a/meta-agl/recipes-devtools/tcf-agent/tcf-agent_git.bbappend b/meta-agl/recipes-devtools/tcf-agent/tcf-agent_git.bbappend new file mode 100644 index 000000000..6f444b32f --- /dev/null +++ b/meta-agl/recipes-devtools/tcf-agent/tcf-agent_git.bbappend @@ -0,0 +1,3 @@ +# This is a backport of: +# https://patchwork.openembedded.org/patch/140355/ +FILESEXTRAPATHS_prepend := "${THISDIR}/tcf-agent:" -- cgit 1.2.3-korg