]> 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)
committerLoic Dachary <ldachary@redhat.com>
Fri, 2 Oct 2015 14:35:50 +0000 (16:35 +0200)
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: #10927
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
(cherry picked from commit c83542296aeb8f5dd96f5d9e09327e7a89370742)

src/init-radosgw

index 149d6d12e4c74a73479b8d77cefa10f5006294f8..6fb8ba289056f5bcabf00942fd7f1b828a8e3690 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"