]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
init-radosgw: run RGW as root 4463/head
authorKen Dreyer <kdreyer@redhat.com>
Wed, 22 Apr 2015 22:36:42 +0000 (16:36 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Fri, 24 Apr 2015 22:51:28 +0000 (16:51 -0600)
The ceph-radosgw service fails to start if the httpd package is not
installed. This is because the init.d file attempts to start the RGW
process with the "apache" UID. If a user is running civetweb, there is
no reason for the httpd or apache2 package to be present on the system.

Switch the init scripts to use "root" as is done on Ubuntu.

http://tracker.ceph.com/issues/11453 Refs: #11453

Reported-by: Vickey Singh <vickey.singh22693@gmail.com>
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
(cherry picked from commit 47339c5ac352d305e68a58f3d744c3ce0fd3a2ac)

src/init-radosgw
src/init-radosgw.sysv

index 8e8a5396619ffe7e3cd0e26316d32db5e47ea50e..914d6fddcc1a47a165e6d321a6b5314f74c85215 100644 (file)
@@ -35,7 +35,7 @@ done
 PREFIX='client.radosgw.'
 
 # user to run radosgw as (it not specified in ceph.conf)
-DEFAULT_USER='www-data'
+DEFAULT_USER='root'
 
 RADOSGW=`which radosgw`
 if [ ! -x "$RADOSGW" ]; then
index f4eda14e90f94a1e8abf3c427de5254da673dbc8..4ec891ecdd62cdbbf3e00dfd7c8a0ebc0412830a 100644 (file)
@@ -37,7 +37,7 @@ PREFIX='client.radosgw.'
 
 # user to run radosgw as (it not specified in ceph.conf)
 #DEFAULT_USER='www-data'
-DEFAULT_USER='apache'
+DEFAULT_USER='root'
 
 RADOSGW=`which radosgw`
 if [ ! -x "$RADOSGW" ]; then