Skip to content

Commit

Permalink
init-radosgw: run RGW as root
Browse files Browse the repository at this point in the history
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: ceph#11453

Reported-by: Vickey Singh <vickey.singh22693@gmail.com>
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
  • Loading branch information
ktdreyer committed Apr 23, 2015
1 parent 89262ab commit 47339c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/init-radosgw
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/init-radosgw.sysv
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47339c5

Please sign in to comment.