From: Vikhyat Umrao Date: Thu, 23 Jul 2015 12:40:06 +0000 (+0530) Subject: rgw: fix radosgw start-up script. X-Git-Tag: v9.1.0~498^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5325%2Fhead;p=ceph.git rgw: fix radosgw start-up script. 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 --- diff --git a/src/init-radosgw b/src/init-radosgw index 149d6d12e4c..6fb8ba28905 100644 --- a/src/init-radosgw +++ b/src/init-radosgw @@ -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"