]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix radosgw start-up script.
authorVikhyat Umrao <vumrao@redhat.com>
Thu, 23 Jul 2015 12:40:06 +0000 (18:10 +0530)
committerKen Dreyer <kdreyer@redhat.com>
Wed, 23 Sep 2015 20:37:39 +0000 (14:37 -0600)
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 c83542296aeb8f5dd96f5d9e09327e7a89370742)

src/init-radosgw

index 25fd346c6dda82dba6f01e2eb2f9f6f599460661..8f33179b9cfb1c2fbda91091de8b6638cd58eea1 100644 (file)
@@ -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"