summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-horizon
diff options
context:
space:
mode:
authorAmy Fong <Amy.Fong@windriver.com>2014-03-13 15:50:53 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-03-15 00:41:35 -0400
commit13b70dd07c8c2cdd799bd4b1f725157401b34068 (patch)
tree9847cd49cfe23e2ef59f89c5974597bf3535eb8b /meta-openstack/recipes-devtools/python/python-horizon
parentd9cc0bd2df7bca5ceb78aa573d6186cdcd8a088e (diff)
downloadmeta-cloud-services-13b70dd07c8c2cdd799bd4b1f725157401b34068.tar.gz
OpenStack: Add to incomplete/misbehaving scripts
Horizon's init script doesn't kill all of the horizon processes, a forked process is left dangling. (And you can still login and interact with horizon) We replace: start-stop-daemon --stop ... --pidfile with: pkill -TERM -P `cat $PIDFILE` Signed-off-by: Amy Fong <Amy.Fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-horizon')
-rw-r--r--meta-openstack/recipes-devtools/python/python-horizon/horizon.init3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-horizon/horizon.init b/meta-openstack/recipes-devtools/python/python-horizon/horizon.init
index d5dbadd..65b96e4 100644
--- a/meta-openstack/recipes-devtools/python/python-horizon/horizon.init
+++ b/meta-openstack/recipes-devtools/python/python-horizon/horizon.init
@@ -43,8 +43,9 @@ start()
43 43
44stop() 44stop()
45{ 45{
46 if [ ! -e $PIDFILE ]; then return; fi
46 echo -n "Stopping $DESC..." 47 echo -n "Stopping $DESC..."
47 start-stop-daemon --stop --quiet --pidfile $PIDFILE 48 pkill -TERM -P `cat $PIDFILE`
48 if [ $? -eq 0 ]; then 49 if [ $? -eq 0 ]; then
49 echo "done." 50 echo "done."
50 else 51 else