summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-06-06 15:21:30 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-09-07 19:30:43 +0200
commitb1c2aa2c4a8c0266a01903eab5539e7929ea0431 (patch)
treed6fd7083f8f900f328bdb8c6250ebc34e9ac5e93
parent794ed1faec7ced23b5b46d114f5320d718c9e9fb (diff)
downloadceph-b1c2aa2c4a8c0266a01903eab5539e7929ea0431.tar.gz
fix init-radosgw* to use the same indentation
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de> (cherry picked from commit b4d4e92ed2deae435a24b36d086c1a73e5997855)
-rw-r--r--src/init-radosgw56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/init-radosgw b/src/init-radosgw
index 8fe986d6a26..cbeadff61f8 100644
--- a/src/init-radosgw
+++ b/src/init-radosgw
@@ -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