This way we get the correct default values, as reflected by radosgw
itself.
Signed-off-by: Sage Weil <sage@inktank.com>
fi
# is the socket defined? if it's not, this instance shouldn't run as a daemon.
- rgw_socket=`ceph-conf -n $name 'rgw socket path'`
+ rgw_socket=`$RADOSGW -n $name --show-config-value rgw_socket_path`
if [ -z "$rgw_socket" ]; then
continue
fi
user="$DEFAULT_USER"
fi
- log_file=`ceph-conf -n $name log_file`
+ log_file=`$RADOSGW -n $name --show-config-value log_file`
if [ -n "$log_file" ] && [ ! -e "$log_file" ]; then
touch "$log_file"
chown $user $log_file
fi
# is the socket defined? if it's not, this instance shouldn't run as a daemon.
- rgw_socket=`ceph-conf -n $name 'rgw socket path'`
+ rgw_socket=`$RADOSGW -n $name --show-config-value rgw_socket_path`
if [ -z "$rgw_socket" ]; then
continue
fi
user="$DEFAULT_USER"
fi
- log_file=`ceph-conf -n $name log_file`
+ log_file=`$RADOSGW -n $name --show-config-value log_file`
if [ -n "$log_file" ] && [ ! -e "$log_file" ]; then
touch "$log_file"
chown $user $log_file