git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5680 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
		
			
				
	
	
		
			43 lines
		
	
	
		
			943 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			943 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
 | |
| # chkconfig: 345 84 59
 | |
| # description: service node postboot script hack
 | |
| # processname: xcatpostinit
 | |
| 
 | |
| ### BEGIN INIT INFO
 | |
| # Provides: xcatpostinit
 | |
| # Default-Start: 3 4 5
 | |
| # Default-stop: 0 1 2 6
 | |
| # Required-Start: 
 | |
| # Required-Stop:
 | |
| # Short-Description: xCATpost
 | |
| # Description: xCAT post boot script
 | |
| ### END INIT INFO
 | |
| 
 | |
| # Source function library.
 | |
| if [ -x /etc/rc.d/init.d/functions ]; then
 | |
|   . /etc/rc.d/init.d/functions
 | |
| fi
 | |
| 
 | |
| logger -t xcat "$0: action is $1"
 | |
| case $1 in
 | |
| restart)
 | |
|   $0 stop
 | |
|   $0 start
 | |
|   ;;
 | |
| status)
 | |
|   echo -n "xcatpostinit runs only at boot, runs additional post scripts"
 | |
|   logger -t xcat "xcatpostinit runs only at boot, runs additional post scripts"
 | |
|   ;;
 | |
| stop)
 | |
|   echo -n "nothing to stop "
 | |
|   logger -t xcat "nothing to stop"
 | |
|   ;;
 | |
| start)
 | |
|   # run /opt/xcat/xcatdsklspost
 | |
|   if [ -r /opt/xcat/xcatdsklspost ]; then
 | |
|     /opt/xcat/xcatdsklspost
 | |
|   fi
 | |
|   ;;
 | |
| esac
 |