Your IP : 216.73.216.247


Current Path : /etc/rc3.d/
Upload File :
Current File : //etc/rc3.d/S50rubrikagents

#!/bin/sh
### BEGIN INIT INFO
# Provides:          rubrik agent service
# Required-Start:    $local_fs $remote_fs $network $syslog $named
# Required-Stop:     $local_fs $remote_fs $network $syslog $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# X-Interactive:     true
# Short-Description: Start the Rubrik bootstrap and backup agents
# Description:       Start the Rubrik bootstrap and backup agents
#  This script will start Rubrik bootstrap_agent and backup_agent on startup
#  There is no handling for shutdown, since none is needed.
### END INIT INFO

# This script takes start|stop|restart|status as a parameter to
# manage backup agent and bootstrap agent. If no parameter is
# passed the default behavior to start the backup and bootstrap
# agents if they are not running. Service command uses this script
# to manage backup agent and bootstrap agent. E.g.
# service rubrikagents start
# service rubrikagents status
# service rubrikagents stop
# service rubrikagents restart

if [ -z "$1" ]; then
  /etc/rubrik/check_and_restart_agents.sh
else
  /etc/rubrik/start_stop_agent.sh "$1"
  /etc/rubrik/start_stop_bootstrap.sh "$1"
fi