HEX
Server: Apache/2.4.68 (codeit) OpenSSL/4.0.1
System: Linux societies-web 5.4.17-2136.353.3.el8uek.x86_64 #3 SMP Thu Feb 12 09:46:56 PST 2026 x86_64
User: yles (1028)
PHP: 8.3.31
Disabled: exec,shell_exec,passthru,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,symlink,pcntl_exec
Upload Files
File: //etc/init.d/networker
#! /bin/sh

# Copyright (c) 1990-2016, EMC Corporation 

# All rights reserved.

# chkconfig: 35 95 05
# description: EMC Networker. A backup and restoration software package.

### BEGIN INIT INFO
# Provides: networker
# Required-Start: syslog network
# Required-Stop: syslog network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: EMC Networker. A backup and restoration software package.
### END INIT INFO

# IMPORTANT NOTE:
# Upgrading NetWorker will overwrite this startup script.
# End-users should place NetWorker environment variables in nsrrc, which will
# be sourced before starting NetWorker daemons. nsrrc must be a Bourne shell
# script, and environment variables in nsrrc must be exported to take effect.
NSRRC=/nsr/nsrrc
NSR_ENVEXEC=/opt/nsr/admin/nsr_envexec

# networkerrc defines environment variables, such as LD_LIBRARY_PATH, required
# to run NetWorker daemons.
NETWORKERRC=/opt/nsr/admin/networkerrc

start_service()
{
	(echo 'starting NetWorker daemons:') > /dev/console
	if [ -x /opt/nsr/admin/nsr_serverrc ]; then
		. /opt/nsr/admin/nsr_serverrc || exit 1
	fi
	if [ -f /usr/sbin/nsrexecd ]; then
		if [ -f /usr/sbin/NetWorker.clustersvr ]; then
			if [ -d /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
		"$NSR_ENVEXEC" -u "$NSRRC" -s "$NETWORKERRC" \
			"/usr/sbin/nsrexecd" 2>&1 | /usr/bin/tee /dev/console
		(echo ' nsrexecd') > /dev/console
	if [ -x /usr/sbin/nsrpsd ]; then
		/usr/sbin/nsrpsd -i
	fi
	fi
	if [ -f /usr/sbin/lgtolmd ]; then
		"$NSR_ENVEXEC" -s "$NETWORKERRC" \
			/usr/sbin/lgtolmd -p /nsr/lic -n 1 2>&1 | \
			/usr/bin/tee /dev/console
		(echo ' lgtolmd') > /dev/console
	fi
	if [ -f /usr/sbin/nsrctld -a \
	    ! -f /usr/sbin/NetWorker.clustersvr ]; then
		"$NSR_ENVEXEC" -u "$NSRRC" -s "$NETWORKERRC" \
			"/usr/sbin/nsrctld" 2>&1 | /usr/bin/tee /dev/console
		(echo ' nsrctld') > /dev/console
	fi

	if [ -f /opt/nsr/nsrmq/bin/nsrmqd ]; then
		"$NSR_ENVEXEC" -s "$NETWORKERRC" \
			/opt/nsr/nsrmq/bin/nsrmqd --config=/opt/nsr/nsrmq/nsrmq.cfg \
			--pidfile=/opt/nsr/nsrmq/nsrmq.pid \
			--logfile=/opt/nsr/nsrmq/logs/nsrmq.log 2>&1 | \
			/usr/bin/tee /dev/console
		(echo ' nsrmqd') > /dev/console
	fi
	if [ -d /var/lock/subsys ]; then
		touch /var/lock/subsys/networker
	fi
}

case $1 in
    start)
	start_service
	;;
    stop)
	EXITCODE=0
	(echo 'stopping NetWorker daemons:') > /dev/console
	if [ -f /usr/sbin/nsr_shutdown ]; then
		(/usr/sbin/nsr_shutdown -q) 2>&1 | \
			/usr/bin/tee /dev/console
		EXITCODE=${PIPESTATUS[0]}
		(echo ' nsr_shutdown -q') > /dev/console
	fi
	if [ -f /usr/sbin/nsrps_shutdown ]; then
		(/usr/sbin/nsrps_shutdown -q) 2>&1 | \
			/usr/bin/tee /dev/console
		(echo ' nsrps_shutdown -q') > /dev/console
	fi	
	if [ $EXITCODE -eq 0 ]; then
		rm -f /var/lock/subsys/networker
	fi
	exit $EXITCODE
	;;
    startps)
	if [ -d /etc/init.d -a ! -L /etc/init.d ]; then
		NSRPS=/etc/init.d/nsrps
	else
		NSRPS=/etc/rc.d/init.d/nsrps
	fi
	(echo 'starting nsrpsd daemon:') > /dev/console
	if [ -f ${NSRPS} ]; then
		(${NSRPS} start)
		result=$?
		if [ ${result} -eq 0 ]; then
			(/bin/sleep 15)
			(echo ' nsrpsd') > /dev/console
		elif [ ${result} -ne 10 ]; then
			(echo ' Error: nsrpsd failed to start') > /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