Merge "typo fix: check right dir before starting ceph-manager"

This commit is contained in:
Zuul 2018-12-20 20:51:04 +00:00 committed by Gerrit Code Review
commit 502792b995
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@ LOGFILE="/var/log/ceph-manager.log"
start()
{
if [ -e $PIDFILE ]; then
PIDDIR=/prod/$(cat $PIDFILE)
if [ -d ${PIDFILE} ]; then
PIDDIR=/proc/$(cat $PIDFILE)
if [ -d ${PIDDIR} ]; then
echo "$DESC already running."
exit 0
else