From 787c5eb8ff2291676abaf522a56c8d7a62276933 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 24 Jun 2008 19:46:23 +0000 Subject: [PATCH] -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 --- xCAT-server/etc/init.d/xcatd | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xCAT-server/etc/init.d/xcatd b/xCAT-server/etc/init.d/xcatd index eed48eedb..64a218eaf 100755 --- a/xCAT-server/etc/init.d/xcatd +++ b/xCAT-server/etc/init.d/xcatd @@ -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