luzhonghao commented on a change in pull request #45: [SUBMARINE-237] 
workbench-daemon.sh returns wrong status
URL: https://github.com/apache/hadoop-submarine/pull/45#discussion_r334368357
 
 

 ##########
 File path: bin/workbench-daemon.sh
 ##########
 @@ -148,15 +148,15 @@ function find_workbench_process() {
   pid=`found_workbench_server_pid`
 
   if [[ -z "$pid" ]]; then
-    if ! kill -0 ${pid} > /dev/null 2>&1; then
+    echo "${WORKBENCH_NAME} is not running"
+    return 1
+  else
+   if ! kill -0 ${pid} > /dev/null 2>&1; then
 
 Review comment:
   > The first letter needs to be indented into two.
   
   Done, thanks to point it

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to