diff options
author | Amy Fong <Amy.Fong@windriver.com> | 2014-03-13 15:50:53 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-15 00:41:35 -0400 |
commit | 13b70dd07c8c2cdd799bd4b1f725157401b34068 (patch) | |
tree | 9847cd49cfe23e2ef59f89c5974597bf3535eb8b /meta-openstack/recipes-devtools/python/python-horizon/horizon.init | |
parent | d9cc0bd2df7bca5ceb78aa573d6186cdcd8a088e (diff) | |
download | meta-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/horizon.init')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-horizon/horizon.init | 3 |
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 | ||
44 | stop() | 44 | stop() |
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 |