summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/tcf-agent/tcf-agent/fix_tcf-agent.init.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/tcf-agent/tcf-agent/fix_tcf-agent.init.patch')
-rw-r--r--meta/recipes-devtools/tcf-agent/tcf-agent/fix_tcf-agent.init.patch6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent/fix_tcf-agent.init.patch b/meta/recipes-devtools/tcf-agent/tcf-agent/fix_tcf-agent.init.patch
index fefaf040bb..8ea5b43d53 100644
--- a/meta/recipes-devtools/tcf-agent/tcf-agent/fix_tcf-agent.init.patch
+++ b/meta/recipes-devtools/tcf-agent/tcf-agent/fix_tcf-agent.init.patch
@@ -13,7 +13,7 @@ Upstream-Status: Inappropriate [poky-specific script]
13 install -c -t $(INSTALLROOT)$(INCLUDE)/tcf/services -m 644 services/*.h 13 install -c -t $(INSTALLROOT)$(INCLUDE)/tcf/services -m 644 services/*.h
14--- /dev/null 14--- /dev/null
15+++ b/tcf-agent.init 15+++ b/tcf-agent.init
16@@ -0,0 +1,78 @@ 16@@ -0,0 +1,80 @@
17+#!/bin/sh 17+#!/bin/sh
18+### BEGIN INIT INFO 18+### BEGIN INIT INFO
19+# Provides: tcf-agent 19+# Provides: tcf-agent
@@ -50,14 +50,16 @@ Upstream-Status: Inappropriate [poky-specific script]
50+ stop) 50+ stop)
51+ echo -n "Stopping $DAEMON_NAME: " 51+ echo -n "Stopping $DAEMON_NAME: "
52+ count=0 52+ count=0
53+ pid=$(/bin/pidof $DAEMON_PATH)
53+ while [ -n "`/bin/pidof $DAEMON_PATH`" -a $count -lt 10 ] ; do 54+ while [ -n "`/bin/pidof $DAEMON_PATH`" -a $count -lt 10 ] ; do
54+ killproc $DAEMON_PATH >& /dev/null 55+ kill $pid > /dev/null 2>&1
55+ sleep 1 56+ sleep 1
56+ RETVAL=$? 57+ RETVAL=$?
57+ if [ $RETVAL != 0 -o -n "`/bin/pidof $DAEMON_PATH`" ] ; then 58+ if [ $RETVAL != 0 -o -n "`/bin/pidof $DAEMON_PATH`" ] ; then
58+ sleep 3 59+ sleep 3
59+ fi 60+ fi
60+ count=`expr $count + 1` 61+ count=`expr $count + 1`
62+ pid=$(/bin/pidof $DAEMON_PATH)
61+ done 63+ done
62+ rm -f /var/lock/subsys/$DAEMON_NAME 64+ rm -f /var/lock/subsys/$DAEMON_NAME
63+ if [ -n "`/bin/pidof $DAEMON_PATH`" ] ; then 65+ if [ -n "`/bin/pidof $DAEMON_PATH`" ] ; then