-Change xcatd init script to prefer RH for variants that had poor LSB implementations earlier on

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1754 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-06-24 19:46:23 +00:00
parent 0eaec9e9d3
commit 787c5eb8ff

View File

@ -34,14 +34,7 @@ MStatus()
return $RVAL
}
if [ -f /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
START_DAEMON=start_daemon
STATUS=MStatus
LOG_SUCCESS=log_success_msg
LOG_FAILURE=log_failure_msg
LOG_WARNING=log_warning_msg
elif [ -f /etc/init.d/functions ]; then
if [ -f /etc/init.d/functions ]; then
#echo RH
. /etc/init.d/functions
START_DAEMON=daemon
@ -49,6 +42,13 @@ elif [ -f /etc/init.d/functions ]; then
LOG_SUCCESS=success
LOG_FAILURE=failure
LOG_WARNING=passed
elif [ -f /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
START_DAEMON=start_daemon
STATUS=MStatus
LOG_SUCCESS=log_success_msg
LOG_FAILURE=log_failure_msg
LOG_WARNING=log_warning_msg
else
echo "Error, don't know how to start on this platform"
exit 1