-xCATd init script polish for RH functions

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1776 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-06-26 14:45:51 +00:00
parent 8e83d46a5a
commit 6b11a47249

View File

@ -21,6 +21,17 @@ if [ -r /etc/sysconfig/xcat ]; then
. /etc/sysconfig/xcat
fi
RHSuccess()
{
success
echo
}
RHFailure()
{
failure
echo
}
MStatus()
{
ps ax|grep -v grep|grep xcatd: >& /dev/null
@ -39,8 +50,8 @@ if [ -f /etc/init.d/functions ]; then
. /etc/init.d/functions
START_DAEMON=daemon
STATUS=MStatus
LOG_SUCCESS=success
LOG_FAILURE=failure
LOG_SUCCESS=RHSuccess
LOG_FAILURE=RHFailure
LOG_WARNING=passed
elif [ -f /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions