#! /bin/sh

### BEGIN INIT INFO
# Provides:          shinken-scheduler
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Shinken scheduler daemon
# Description:       Shinken is a monitoring tool and the Scheduler
#                    is one of its daemon. This one get configuration from the arbiter
#                    His purpose is only to schedule do the checks and actions specified
#		     in the configuration received from the arbiter
### END INIT INFO

### BEGIN INIT INFO Redhat
# Shinken        Starts Shinken Scheduler
#
# chkconfig: 345 99 01
# description: Start Shinken scheduler daemon
### END INIT INFO

# Author: Gabes Jean <naparuba@gmail.com>
#         Olivier LI-KIANG-CHEONG <lkco@gezen.fr>


NAME="shinken-scheduler"

curdir=$(dirname "$0")

export SHINKEN_MODULE_FILE="$NAME"  ## for 'shinken' init script to see that it's called by us

"$curdir/shinken" $@ scheduler

exit $?
