summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-heat
diff options
context:
space:
mode:
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