typo fix: check right dir before starting ceph-manager

It should be "/proc" instead of "/prod"

Change-Id: Ibba46e69f69aca82698f51c31496dbe4c3a39eb5
Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
This commit is contained in:
Changcheng Liu 2018-12-20 10:27:34 +08:00
parent d910ac0dc6
commit bbd655d23c

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