Setting up an HP SIM server 6.0 or greater on a Linux-based Serviceguard Cluster White Paper 444847-004, February 2010

46
res=0
if [ $ret
-
eq 0 ]; then
echo_success
e
lse
echo_failure
res=1
fi
echo
/etc/init.d/hpsmdb stop
ret=$?
Sleep 2
if [ $ret
-
eq 0 ]; then
echo_success
else
echo_failure
res=1
fi
echo
rm
-
f /var/lock/subsys/${NAME}
exit $res
}
restart(){
stop
start
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
statu
s sgsim
;;
restart)
restart
;;
*)
echo $"Usage: $0 {start|stop|status|restart}"
exit 1
esac
exit 0
9.
For each node, create the following symbolic link
:
#
ln
sf /hpsimlnx/etc/init.d/sgim /etc/init.d
Starting the pa
ckage
1.
Select
the
hpsim
package
you
created in previous
section
.
2.
Select
Administration > Run Package
.