summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/tcf-agent
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@web.de>2017-04-30 17:28:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-20 11:00:23 +0100
commit4ba7143744320cfb5037e328c2aa25ff316d3ba5 (patch)
tree7b96a6ffc54b359335f9f8dfcace773d8cab3884 /meta/recipes-devtools/tcf-agent
parent0920b28c93632ed53e1d50c24f260f9359fcc150 (diff)
downloadpoky-4ba7143744320cfb5037e328c2aa25ff316d3ba5.tar.gz
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: b27d804dd0cbce3e4ed43e7fdfcc4e12c141e78d) Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/tcf-agent')
-rwxr-xr-xmeta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init12
1 files changed, 1 insertions, 11 deletions
diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init b/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init
index 6303280aae..f90208555b 100755
--- a/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init
+++ b/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init
@@ -33,16 +33,7 @@ case "$1" in
33 33
34 stop) 34 stop)
35 echo -n "Stopping $DAEMON_NAME: " 35 echo -n "Stopping $DAEMON_NAME: "
36 count=0 36 start-stop-daemon -K -q -x $DAEMON_PATH -s USR2
37 while [ -n "`/bin/pidof $DAEMON_PATH`" -a $count -lt 10 ] ; do
38 killproc $DAEMON_PATH >& /dev/null
39 sleep 1
40 RETVAL=$?
41 if [ $RETVAL != 0 -o -n "`/bin/pidof $DAEMON_PATH`" ] ; then
42 sleep 3
43 fi
44 count=`expr $count + 1`
45 done
46 rm -f /var/lock/subsys/$DAEMON_NAME 37 rm -f /var/lock/subsys/$DAEMON_NAME
47 if [ -n "`/bin/pidof $DAEMON_PATH`" ] ; then 38 if [ -n "`/bin/pidof $DAEMON_PATH`" ] ; then
48 echo "FAIL" 39 echo "FAIL"
@@ -72,4 +63,3 @@ case "$1" in
72esac 63esac
73 64
74exit $RETVAL 65exit $RETVAL
75