#!/sbin/runscript depend() { need "net" } start() { NBPATH=/opt/openv/netbackup/bin BPPS=/opt/openv/netbackup/bin/bpps if [ -x ${NBPATH}/nbftclnt ] ; then ebegin "Starting NetBackup SAN Client Fibre Transport daemon" start-stop-daemon --start --exec ${NBPATH}/nbftclnt eend $? else ewarn "NetBackup SAN Client Fibre Transport daemon not found." fi # See if BMR Boot Server has been installed. If so, start its daemon. if [ -f ${NBPATH}/rc.bmrbd ] ; then ebegin "Starting NetBackup Bare Metal Restore Boot Server daemon" #${NBPATH}/rc.bmrbd start >/dev/null 2>&1 start-stop-daemon --start --quiet --exec ${NBPATH}/rc.bmrbd -- start eend $? else ewarn "NetBackup Bare Metal Restore Boot Server daemon not found." fi # This locking file is used by LINUX init if [ -d /var/lock/subsys ] ; then touch /var/lock/subsys/nbclient fi } stop() { # Not sure why this is needed... IS_NETBACKUP_DAEMON=YES export IS_NETBACKUP_DAEMON if [ -x ${NBPATH}/nbftclnt ] ; then ebegin "Stopping NetBackup SAN Client Fibre Transport daemon" start-stop-daemon --stop --quiet --exec ${NBPATH}/nbftclnt -- -terminate eend $? else ewarn "NetBackup SAN Client Fibre Transport daemon not found." fi # See if BMR Boot Server has been installed. If so, start its daemon. if [ -f ${NBPATH}/rc.bmrbd ] ; then ebegin "Stopping NetBackup Bare Metal Restore Boot Server daemon" start-stop-daemon --stop --quiet --exec ${NBPATH}/rc.bmrbd -- stop eend $? else ewarn "NetBackup Bare Metal Restore Boot Server daemon not found." fi } reload() { if [ -x ${NBPATH}/nbftclnt ] ; then ebegin "Reloading NetBackup SAN Client Fibre Transport daemon" start-stop-daemon --stop --oknodo --quiet --exec ${NBPATH}/nbftclnt --signal HUP eend $? else ewarn "NetBackup SAN Client Fibre Transport daemon not found." fi # See if BMR Boot Server has been installed. If so, start its daemon. if [ -f ${NBPATH}/rc.bmrbd ] ; then ebegin "Reloading NetBackup Bare Metal Restore Boot Server daemon" start-stop-daemon --stop --oknodo --quiet --exec ${NBPATH}/rc.bmrbd --signal HUP eend $? else ewarn "NetBackup Bare Metal Restore Boot Server daemon not found." fi }