From 13b70dd07c8c2cdd799bd4b1f725157401b34068 Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Thu, 13 Mar 2014 15:50:53 -0400 Subject: 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 Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-devtools/python/python-horizon/horizon.init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python/python-horizon') 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() stop() { + if [ ! -e $PIDFILE ]; then return; fi echo -n "Stopping $DESC..." - start-stop-daemon --stop --quiet --pidfile $PIDFILE + pkill -TERM -P `cat $PIDFILE` if [ $? -eq 0 ]; then echo "done." else -- cgit v1.2.3-54-g00ecf