mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	-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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user