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 <vumrao@redhat.com>
(cherry picked from commit c835422)
  • Loading branch information
vumrao authored and ldachary committed Oct 2, 2015
1 parent 544a98f commit f51ab26
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 f51ab26

Please sign in to comment.