From bbd655d23c92d3b4f3473a8f05465c99aa53aaab Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Thu, 20 Dec 2018 10:27:34 +0800 Subject: [PATCH] typo fix: check right dir before starting ceph-manager It should be "/proc" instead of "/prod" Change-Id: Ibba46e69f69aca82698f51c31496dbe4c3a39eb5 Signed-off-by: Changcheng Liu --- ceph/ceph-manager/scripts/init.d/ceph-manager | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceph/ceph-manager/scripts/init.d/ceph-manager b/ceph/ceph-manager/scripts/init.d/ceph-manager index 88bdddfb8..b0a0fc6c9 100644 --- a/ceph/ceph-manager/scripts/init.d/ceph-manager +++ b/ceph/ceph-manager/scripts/init.d/ceph-manager @@ -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