get_conf pid_file "$run_dir/$type.$id.pid" "pid file"
+ if [ ! -d $run_dir ]; then
+ install -d -m0770 -o ceph -g ceph /var/run/ceph
+ fi
+
if [ "$command" = "start" -o "$command" = "onestart" ]; then
if [ -n "$pid_file" ]; then
- do_cmd "mkdir -p "`dirname $pid_file`
cmd="$cmd --pid-file $pid_file"
fi
fi
echo Starting Ceph $name on $host...
- if [ ! -d $run_dir ]; then
- # assume /var/run exists
- install -d -m0770 -o ceph -g ceph /var/run/ceph
- fi
get_conf pre_start_eval "" "pre start eval"
[ -n "$pre_start_eval" ] && $pre_start_eval
get_conf pre_start "" "pre start command"