Double check with design, Add /etc/init.d/HPCbootstatus.linuxinit on Linux for diskful node reboot.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8351 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2010-12-08 03:26:14 +00:00
parent 09c7e10c4c
commit 97a821a73b

View File

@ -0,0 +1,40 @@
#!/bin/sh
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
# chkconfig: 345 84 59
# description: init for HPCbootstatus on linux
# processname: HPCbootstatus.linuxinit
### BEGIN INIT INFO
# Provides: HPCbootstatus.linuxinit
# Default-Start: 3 4 5
# Default-stop: 0 1 2 6
# Required-Start: $network $syslog
# Required-Stop:
# Short-Description: HPCbootstatus.linuxinit
# Description: init for HPCbootstatus on linux
### END INIT INFO
# Source function library.
if [ -x /etc/rc.d/init.d/functions ]; then
. /etc/rc.d/init.d/functions
fi
case $1 in
restart)
$0 stop
$0 start
;;
status)
echo -n "HPCbootstatus.linuxinit runs only at boot"
;;
stop)
echo -n "nothing to stop "
;;
start)
# run /xcatpost/HPCbootstatus.linux
if [ -r /xcatpost/HPCbootstatus.linux ]; then
/xcatpost/HPCbootstatus.linux
fi
;;
esac