From: Zhi Zhang Date: Thu, 30 Jul 2015 09:01:35 +0000 (+0800) Subject: Fix conf not found error when using init script to restart radosgw-agent X-Git-Tag: v1.2.5~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=24e9e7716b20c1fcccc547a380e132df9e2c8851;p=radosgw-agent.git Fix conf not found error when using init script to restart radosgw-agent Init script wrongly passed conf file name recursively in restarting case, so conf file not found after re-entry init script. It should pass initial conf file path. Signed-off-by: Zhi Zhang zhangz.david@outlook.com --- diff --git a/init-radosgw-agent b/init-radosgw-agent index ace91ae..f43970e 100644 --- a/init-radosgw-agent +++ b/init-radosgw-agent @@ -79,12 +79,12 @@ case "$1" in fi ;; restart) - $0 stop $name + $0 stop $config_path if is_running; then echo "Unable to stop, will not attempt to start" exit 1 fi - $0 start $name + $0 start $config_path ;; status) if is_running; then