]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
init-radosgw: use radosgw --show-config-value to get config values 367/head
authorSage Weil <sage@inktank.com>
Thu, 20 Jun 2013 02:38:17 +0000 (19:38 -0700)
committerSage Weil <sage@inktank.com>
Thu, 20 Jun 2013 02:44:46 +0000 (19:44 -0700)
This way we get the correct default values, as reflected by radosgw
itself.

Signed-off-by: Sage Weil <sage@inktank.com>
src/init-radosgw
src/init-radosgw.sysv

index 174620fa9ebda79828a24dfc2b11b7a1d7a8bf8a..a526441c3a0650e99e1eb96366e59259dc2591ea 100644 (file)
@@ -41,7 +41,7 @@ case "$1" in
             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
@@ -57,7 +57,7 @@ case "$1" in
                 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
index ed9d178d7a8645b1d0eb912e4609543a64602cd9..da80ae19be8d701a191895f6cfac9e6792b12a26 100644 (file)
@@ -43,7 +43,7 @@ case "$1" in
             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
@@ -59,7 +59,7 @@ case "$1" in
                 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