<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11795</bug_id>
          
          <creation_ts>2017-07-17 03:26:54 +0000</creation_ts>
          <short_desc>[Yocto 2.3.1] Can not stop tcf-agent daemon</short_desc>
          <delta_ts>2017-09-20 06:37:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>2.3.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75053</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2017-07-17 03:26:54 +0000</bug_when>
    <thetext>Git rev: pyro/6bd890d9e011014cf323e61267f8b256949d44aa

This bug is cloned from bug 10858 which already fixed in master branch. It&apos;s better to backport the following 2 patches to pyro branch:

commit b467a22729bea886d7bde976c9606ac8e4589cde
Author: Jan Kiszka &lt;jan.kiszka@web.de&gt;
Date:   Sun Apr 30 17:28:01 2017 +0200

    tcf-agent: Fix daemon termination
    
    The upstream init script uses SIGUSR2 to terminate that daemon because
    SIGTERM is ignored. As the killproc function does not support specifying
    a signal, switch to start-stop-daemon. Drop the retry loop because
    SIGUSR2 is lethal for agent.
    
    (From OE-Core rev: 7a47752f8223f3c0ed4354d5e39f1319071acf41)
    
    Signed-off-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
    Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

commit b33356d168c0fec9b2df387b51240fa6566ca145
Author: Martin Kelly &lt;mkelly@xevo.com&gt;
Date:   Thu Jun 1 14:43:54 2017 +0900

    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.
    
    (From OE-Core rev: 4f8ed1b3bf676a58055ebe01184b3594459a4118)
    
    Signed-off-by: Martin Kelly &lt;mkelly@xevo.com&gt;
    Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75177</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-07-20 10:01:22 +0000</bug_when>
    <thetext>Backported to pyro for the next point release:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=pyro&amp;id=4ba7143744320cfb5037e328c2aa25ff316d3ba5
http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=pyro&amp;id=5686f4e1fe5229705b8c7d35895aa03827796d13</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76976</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2017-09-20 06:37:32 +0000</bug_when>
    <thetext>Verified with 2.3.2 rc1
git rev: pyro/ce26a57e04ad65c02087629701d96448a44e73d5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>