summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-keystone
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-keystone
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-keystone')
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone/keystone19
1 files changed, 17 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone/keystone b/meta-openstack/recipes-devtools/python/python-keystone/keystone
index a5529df..463b05f 100644
--- a/meta-openstack/recipes-devtools/python/python-keystone/keystone
+++ b/meta-openstack/recipes-devtools/python/python-keystone/keystone
@@ -51,6 +51,18 @@ stop ()
51 rm -f $PIDFILE 51 rm -f $PIDFILE
52} 52}
53 53
54status()
55{
56 pid=`cat $PIDFILE 2>/dev/null`
57 if [ -n "$pid" ]; then
58 if ps -p $pid >&- ; then
59 echo "$DESC is running"
60 return
61 fi
62 fi
63 echo "$DESC is not running"
64}
65
54case "$1" in 66case "$1" in
55 start) 67 start)
56 start 68 start
@@ -58,12 +70,15 @@ case "$1" in
58 stop) 70 stop)
59 stop 71 stop
60 ;; 72 ;;
61 restart|force-reload) 73 restart|force-reload|reload)
62 stop 74 stop
63 start 75 start
64 ;; 76 ;;
77 status)
78 status
79 ;;
65 *) 80 *)
66 echo "Usage: $0 {start|stop|force-reload|restart}" 81 echo "Usage: $0 {start|stop|force-reload|restart|reload|status}"
67 exit 1 82 exit 1
68 ;; 83 ;;
69esac 84esac