Reported-by: Ed Burnette <ed.burnette@sas.com>
Signed-off-by: Sage Weil <sage@newdream.net>
fi
fi
-# do lockfile, if RH
-if [ -d /var/lock/subsys ]; then
- lockfile=/var/lock/subsys/ceph
-else
- lockfile=""
-fi
-
usage_exit() {
echo "usage: $0 [options] {start|stop|restart} [mon|osd|mds]..."
printf "\t-c ceph.conf\n"
first_dev=`echo $btrfs_devs | cut '-d ' -f 1`
fi
+ # do lockfile, if RH
+ get_conf lockfile "/var/lock/subsys/ceph" "lock file"
+ lockdir=`dirname $lockfile`
+ if [ ! -d "$lockdir" ]; then
+ lockfile=""
+ fi
+
case "$command" in
start)
# build final command