#!/bin/sh
############################### -*- Mode: Sh -*- ##############################
##
## keepalive --
##
# chkconfig: 345 79 15
# description: Turn on Opsware synchronization service
##
### BEGIN INIT INFO
# Provides:       syncbot-clear
# Required-Stop: $syslog $network
# Default-Start:  3 4 5
# Description:    Turn on syncbot clear
### END INIT INFO
##
## Copyright (C) 1999-2006: Opsware Inc.
##
## Author          : Ray Suorsa
## Created On      : Sun Feb 13 18:46:22 2000
## Last Modified By: Ray Suorsa
## Last Modified On: Tue Mar 28 18:05:55 2000
## Update Count    : 78
## Status          : Web software for the real world...
##
## PURPOSE
##    Keepalive script for the shadowbot/daemonbot and its close kin.
##
## HISTORY
## 20-Mar-2000		Ray Suorsa
##    Last Modified: Mon Mar 20 22:07:05 2000 #58 (Ray Suorsa)
##    Heavy mods for daemonbot.py
## 13-Feb-2000		Ray Suorsa
##    Last Modified: Sun Feb 13 18:46:22 2000 #0 (Ray Suorsa)
##    created
###############################################################################

BOT=syncbot-clear
export BOT

BOTBASE=/opt/opsware
export BOTBASE

BOTDIR=syncbot-clear
export BOTDIR

OPSWARE_OPT_PATH=/opt/opsware/agent
export OPSWARE_OPT_PATH

OPSWARE_CONF_PATH=/etc/opt/opsware
export OPSWARE_CONF_PATH

OPSWARE_VAR_PATH=/var/opt/opsware
export OPSWARE_VAR_PATH

OPSWARE_LOG_PATH=/var/log/opsware
export OPSWARE_LOG_PATH

case "$1" in
    'restart')
        $0 stop
        $0 start
        RETVAL=$?
        exit $RETVAL
        ;;
esac

#
# Don't edit beyond this line :-)
#

. ${OPSWARE_OPT_PATH}/pylibs/shadowbot/etc/shadowfuncs
