From 24e9e7716b20c1fcccc547a380e132df9e2c8851 Mon Sep 17 00:00:00 2001 From: Zhi Zhang Date: Thu, 30 Jul 2015 17:01:35 +0800 Subject: [PATCH] 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 --- init-radosgw-agent | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3