]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
fix init-radosgw* to use the same indentation
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 6 Jun 2013 13:21:30 +0000 (15:21 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 6 Jun 2013 13:21:30 +0000 (15:21 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/init-radosgw
src/init-radosgw.sysv

index 8fe986d6a26ff95a4f9277be55120528add075c3..cbeadff61f86a63adf9643ba5fe5dd4fa98ff6bb 100644 (file)
@@ -33,44 +33,44 @@ fi
 
 case "$1" in
     start)
-       for name in `ceph-conf --list-sections $PREFIX`;
-       do
-           auto_start=`ceph-conf -n $name 'auto start'`
-           if [ "$auto_start" = "no" ] || [ "$auto_start" = "false" ] || [ "$auto_start" = "0" ]; then
-               continue
-           fi
+        for name in `ceph-conf --list-sections $PREFIX`;
+        do
+            auto_start=`ceph-conf -n $name 'auto start'`
+            if [ "$auto_start" = "no" ] || [ "$auto_start" = "false" ] || [ "$auto_start" = "0" ]; then
+                continue
+            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'`
-           if [ -z "$rgw_socket" ]; then
-               continue
-           fi
+            rgw_socket=`ceph-conf -n $name 'rgw socket path'`
+            if [ -z "$rgw_socket" ]; then
+                continue
+            fi
 
             # mapped to this host?
-           host=`ceph-conf -n $name host`
-           if [ "$host" != `hostname` ]; then
-               continue
-           fi
+            host=`ceph-conf -n $name host`
+            if [ "$host" != `hostname` ]; then
+                continue
+            fi
 
-           user=`ceph-conf -n $name user`
-           if [ -z "$user" ]; then
-               user="$DEFAULT_USER"
-           fi
+            user=`ceph-conf -n $name user`
+            if [ -z "$user" ]; then
+                user="$DEFAULT_USER"
+            fi
 
-           log_file=`ceph-conf -n $name log_file`
-           if [ -n "$log_file" ] && [ ! -e "$log_file" ]; then
-               touch "$log_file"
-               chown $user $log_file
-           fi
+            log_file=`ceph-conf -n $name log_file`
+            if [ -n "$log_file" ] && [ ! -e "$log_file" ]; then
+                touch "$log_file"
+                chown $user $log_file
+            fi
 
             echo "Starting $name..."
-           start-stop-daemon --start -u $user -x $RADOSGW -- -n $name
-       done
+            start-stop-daemon --start -u $user -x $RADOSGW -- -n $name
+        done
         ;;
     reload)
-       echo "Reloading $name..."
-       start-stop-daemon --stop --signal HUP -x $RADOSGW --oknodo
-       ;;
+        echo "Reloading $name..."
+        start-stop-daemon --stop --signal HUP -x $RADOSGW --oknodo
+        ;;
     restart|force-reload)
         $0 stop
         $0 start
index 48a7b5b8f96f1b5b596c131236dfe72639caccb2..7684edcea1c88a53730788731fca09af1ff4ed91 100644 (file)
@@ -88,4 +88,4 @@ case "$1" in
         echo "Usage: $0 start|stop|restart" >&2
         exit 3
         ;;
-esac
\ No newline at end of file
+esac