make jsvc use detection more robust on SLES
-------------------------------------------
Key: BIGTOP-135
URL: https://issues.apache.org/jira/browse/BIGTOP-135
Project: Bigtop
Issue Type: Bug
Components: RPM
Affects Versions: 0.2.0
Reporter: Roman Shaposhnik
Assignee: Roman Shaposhnik
Currently datanode only checks for Linux-amd64-64/jsvc we need to make this
code more robust:
hadoop-init.tmpl.suse:
checkstatusofproc(){
# Under certain conditions datanode manifests as jsvc.exec
if [ "@HADOOP_DAEMON@" = "datanode" -a -x
@HADOOP_COMMON_ROOT@/sbin/Linux-amd64-64/jsvc ] ; then
PROC_NAME="jsvc"
else
PROC_NAME="su"
fi
pidofproc -p $PIDFILE $PROC_NAME > /dev/null
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira