summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-nova/nova-consoleauth
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova/nova-consoleauth')
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova/nova-consoleauth21
1 files changed, 20 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova-consoleauth b/meta-openstack/recipes-devtools/python/python-nova/nova-consoleauth
index 56561db..d2c1f29 100644
--- a/meta-openstack/recipes-devtools/python/python-nova/nova-consoleauth
+++ b/meta-openstack/recipes-devtools/python/python-nova/nova-consoleauth
@@ -59,8 +59,27 @@ status()
59case "$1" in 59case "$1" in
60 start) 60 start)
61 test "$ENABLED" = "true" || exit 0 61 test "$ENABLED" = "true" || exit 0
62
63 if [ -e $PIDFILE ]; then
64 PIDDIR=/proc/$(cat $PIDFILE)
65 if [ -d ${PIDDIR} ]; then
66 echo "$DESC already running."
67 exit 1
68 else
69 echo "Removing stale PID file $PIDFILE"
70 rm -f $PIDFILE
71 fi
72 fi
73 PIDDIR=`dirname $PIDFILE`
74 if [ ! -d $PIDDIR ]; then
75 mkdir -p $PIDDIR
76 chown nova $PIDDIR
77 fi
78
62 echo "Starting nova console" "nova-consoleauth" 79 echo "Starting nova console" "nova-consoleauth"
63 start-stop-daemon --start -b -m --pidfile $PIDFILE --exec ${DAEMON} -- ${DAEMON_ARGS} 80 sudo -u nova \
81 start-stop-daemon --start -b -m --pidfile $PIDFILE \
82 --exec ${DAEMON} -- ${DAEMON_ARGS}
64 log_end_msg $? 83 log_end_msg $?
65 ;; 84 ;;
66 stop) 85 stop)