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 upstream: #10927
Fixes downstream: #1238521

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
(cherry picked from commit c835422)
  • Loading branch information
vumrao authored and ktdreyer committed Oct 13, 2016
1 parent 9b72819 commit 441f6a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init-radosgw
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 441f6a9

Please sign in to comment.