diff options
-rwxr-xr-x | meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init | 12 |
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 | |||
72 | esac | 63 | esac |
73 | 64 | ||
74 | exit $RETVAL | 65 | exit $RETVAL |
75 | |||