]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
Fix conf not found error when using init script to restart radosgw-agent 34/head
authorZhi Zhang <zhangz.david@outlook.com>
Thu, 30 Jul 2015 09:01:35 +0000 (17:01 +0800)
committerZhi Zhang <zhangz.david@outlook.com>
Thu, 30 Jul 2015 09:01:35 +0000 (17:01 +0800)
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

index ace91ae06069d9310e9557dac38f932961acf007..f43970e5319fc71efc0ec61fd40aee3fd100910d 100644 (file)
@@ -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