#! /bin/sh # Copyright (c) 1990-2009, EMC Corporation # All rights reserved. ### BEGIN INIT INFO # Required-Start: syslog network # Required-Stop: syslog network # X-UnitedLinux-Should-Start: portmap # Should-Start: portmap # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description: EMC Networker. A backup and restoration software package. ### END INIT INFO case $1 in start) (echo 'starting NetWorker daemons:') > /dev/console LD_LIBRARY_PATH=/usr/lib/nsr:$LD_LIBRARY_PATH export LD_LIBRARY_PATH if [ -f /usr/sbin/nsrexecd ]; then if [ -f /usr/sbin/NetWorker.clustersvr ]; then if [ -f /nsr.NetWorker.local -o -h /nsr.NetWorker.local ]; then if [ -h /nsr ]; then rm -f /nsr ln -s /nsr.NetWorker.local /nsr fi fi fi (/usr/sbin/nsrexecd) > /dev/console 2>&1 (echo ' nsrexecd') > /dev/console fi if [ -f /usr/sbin/lgtolmd ]; then (/usr/sbin/lgtolmd -p /nsr/lic -n 1) > /dev/console 2>&1 (echo ' lgtolmd') > /dev/console fi if [ -f /usr/sbin/nsrd -a \ ! -f /usr/sbin/NetWorker.clustersvr ]; then (/usr/sbin/nsrd) > /dev/console 2>&1 (echo ' nsrd') > /dev/console fi ;; stop) (echo 'stopping NetWorker daemons:') > /dev/console if [ -f /usr/sbin/nsr_shutdown ]; then if [ -f /usr/sbin/NetWorker.clustersvr ]; then (/usr/sbin/nsr_shutdown -q) > /dev/console 2>&1 (echo ' nsr_shutdown -q') > /dev/console else (/usr/sbin/nsr_shutdown -q) > /dev/console 2>&1 (echo ' nsr_shutdown -q') > /dev/console fi fi ;; status) if [ -f /usr/sbin/nsr_shutdown ]; then /usr/sbin/nsr_shutdown -l fi ;; *) echo "usage: `basename $0` {start|stop|status}" ;; esac