Browse Source

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>
changes/20/680920/1
Changcheng Liu 3 years ago
parent
commit
dc73de090f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ceph/ceph-manager/scripts/init.d/ceph-manager

+ 2
- 2
ceph/ceph-manager/scripts/init.d/ceph-manager 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


Loading…
Cancel
Save