From: Ken Dreyer Date: Wed, 22 Apr 2015 22:36:42 +0000 (-0600) Subject: init-radosgw: run RGW as root X-Git-Tag: v0.80.10~16^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a71f3091a4ea810c02517642fb4ab9ce5516b452;p=ceph.git init-radosgw: run RGW as root 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 Signed-off-by: Ken Dreyer (cherry picked from commit 47339c5ac352d305e68a58f3d744c3ce0fd3a2ac) --- diff --git a/src/init-radosgw b/src/init-radosgw index c721870d30c..5aa658c9f8c 100644 --- a/src/init-radosgw +++ b/src/init-radosgw @@ -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 diff --git a/src/init-radosgw.sysv b/src/init-radosgw.sysv index e3b7d93b4cb..fe56939003d 100644 --- a/src/init-radosgw.sysv +++ b/src/init-radosgw.sysv @@ -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