[ https://issues.apache.org/jira/browse/HBASE-6970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14168956#comment-14168956 ]
Ashish Singhi commented on HBASE-6970: -------------------------------------- bq. stop command does not return a failed exit code (<> 0), if the stop fails because the running process was not found. I think we should not return a failed exit code in this case. If we do then user may assume that the process is still running but it is not. > hbase-deamon.sh creates/updates pid file even when that start failed. > --------------------------------------------------------------------- > > Key: HBASE-6970 > URL: https://issues.apache.org/jira/browse/HBASE-6970 > Project: HBase > Issue Type: Bug > Components: Usability > Reporter: Lars Hofhansl > Assignee: Ashish Singhi > Fix For: 2.0.0 > > > We just ran into a strange issue where could neither start nor stop services > with hbase-deamon.sh. > The problem is this: > {code} > nohup nice -n $HBASE_NICENESS "$HBASE_HOME"/bin/hbase \ > --config "${HBASE_CONF_DIR}" \ > $command "$@" $startStop > "$logout" 2>&1 < /dev/null & > echo $! > $pid > {code} > So the pid file is created or updated even when the start of the service > failed. The next stop command will then fail, because the pid file has the > wrong pid in it. > Edit: Spelling and more spelling errors. -- This message was sent by Atlassian JIRA (v6.3.4#6332)