]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
We should exit 1 if radosgw is not executable
authorDavid Moreau Simard <dmsimard@iweb.com>
Tue, 5 Nov 2013 16:32:58 +0000 (11:32 -0500)
committerDavid Moreau Simard <dmsimard@iweb.com>
Tue, 5 Nov 2013 16:32:58 +0000 (11:32 -0500)
An exit 0 means everything went okay - we should exit 1 if there is a problem in
starting radosgw.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
src/init-radosgw
src/init-radosgw.sysv

index ad8bcd12835b58f91003eb108078f8ccfa7d53c5..85afc308406fc38d36b5f9a69c1cffc17db1620f 100644 (file)
@@ -20,7 +20,7 @@ DEFAULT_USER='www-data'
 
 RADOSGW=`which radosgw`
 if [ ! -x "$RADOSGW" ]; then
-    exit 0
+    exit 1
 fi
 
 case "$1" in
index 43b321bd88ee90fd25bf4639374b5b211702578c..70b19950aaa41f9f79251df6958c40a294a99938 100644 (file)
@@ -22,7 +22,7 @@ DEFAULT_USER='apache'
 
 RADOSGW=`which radosgw`
 if [ ! -x "$RADOSGW" ]; then
-    exit 0
+    exit 1
 fi
 
 case "$1" in