Skip to content

Commit

Permalink
rgw: fix radosgw start-up script.
Browse files Browse the repository at this point in the history
radosgw init script is unable to start radosgw daemon.
as it is relies on requiretty being disabled.
once init script start this daemon with sudo it fails
to start the daemon.

changing 'sudo' to 'su', it will fix this issue and
will also help running radosgw daemon with our new
"ceph" UID project.

Fixes: ceph#10927

Signed-off-by: Vikhyat Umrao <[email protected]>
  • Loading branch information
vumrao committed Jul 23, 2015
1 parent 0fa6e51 commit c835422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init-radosgw
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ case "$1" in
if [ $DEBIAN -eq 1 ]; then
start-stop-daemon --start -u $user -x $RADOSGW -- -n $name
elif [ -n "$SYSTEMD_RUN" ]; then
$SYSTEMD_RUN -r sudo -u "$user" bash -c "ulimit -n 32768; $RADOSGW -n $name"
$SYSTEMD_RUN -r su "$user" -c "ulimit -n 32768; $RADOSGW -n $name"
else
ulimit -n 32768
daemon --user="$user" "$RADOSGW -n $name"
Expand Down

0 comments on commit c835422

Please sign in to comment.