summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-heat
diff options
context:
space:
mode:
authorAmy Fong <amy.fong@windriver.com>2014-03-17 14:14:48 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-03-17 15:27:41 -0400
commit9a74961bafabc404f015fc5d8a9da969d263dad3 (patch)
treeedc0caa250166b128c89f606d17373c75e233d26 /meta-openstack/recipes-devtools/python/python-heat
parent71ef5b7acb5815c678cda0c115e98e6b1d06e1aa (diff)
downloadmeta-cloud-services-9a74961bafabc404f015fc5d8a9da969d263dad3.tar.gz
OpenStack: Add to missing functionality in sysvinit scripts
Add status/reload to sysvinit scripts Modify tgtd to make start/stop work better (borrowed from Debian's implementation) 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-heat')
-rw-r--r--meta-openstack/recipes-devtools/python/python-heat/heat.init19
1 files changed, 17 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-heat/heat.init b/meta-openstack/recipes-devtools/python/python-heat/heat.init
index a7a168d..e37c4c8 100644
--- a/meta-openstack/recipes-devtools/python/python-heat/heat.init
+++ b/meta-openstack/recipes-devtools/python/python-heat/heat.init
@@ -64,6 +64,18 @@ stop()
64 rm -f $PIDFILE 64 rm -f $PIDFILE
65} 65}
66 66
67status()
68{
69 pid=`cat $PIDFILE 2>/dev/null`
70 if [ -n "$pid" ]; then
71 if ps -p $pid >&- ; then
72 echo "$DESC is running"
73 return
74 fi
75 fi
76 echo "$DESC is not running"
77}
78
67case "$1" in 79case "$1" in
68 start) 80 start)
69 start 81 start
@@ -71,12 +83,15 @@ case "$1" in
71 stop) 83 stop)
72 stop 84 stop
73 ;; 85 ;;
74 restart|force-reload) 86 restart|force-reload|reload)
75 stop 87 stop
76 start 88 start
77 ;; 89 ;;
90 status)
91 status
92 ;;
78 *) 93 *)
79 echo "Usage: $0 {start|stop|force-reload|restart}" 94 echo "Usage: $0 {start|stop|force-reload|restart|reload|status}"
80 exit 1 95 exit 1
81 ;; 96 ;;
82esac 97esac