Fix : fix hot module under windows test. (at leat I hope...)
[shinken.git] / bin / init.d / shinken-poller
blobf301d50e32d96bfdd2458898095b58c7045bd890
1 #! /bin/sh
3 ### BEGIN INIT INFO
4 # Provides: shinken-poller
5 # Required-Start: $all
6 # Required-Stop: $all
7 # Default-Start: 2 3 4 5
8 # Default-Stop: 0 1 6
9 # Short-Description: Shinken poller daemon
10 # Description: Shinken is a monitoring tool and the Poller
11 # is one of its daemon. This one gets the configuration from the arbiter
12 # His purpose is to actually do the checks ordered by the schedulers,
13 # and then sends the results to the schedulers specified in the
14 # configuration
15 ### END INIT INFO
17 ### BEGIN INIT INFO Redhat
18 # Shinken Starts Shinken Poller
20 # chkconfig: 345 99 01
21 # description: Start Shinken poller daemon
22 ### END INIT INFO
24 # Author: Gabes Jean <naparuba@gmail.com>
25 # Olivier LI-KIANG-CHEONG <lkco@gezen.fr>
28 NAME="shinken-poller"
30 curdir=$(dirname "$0")
32 export SHINKEN_MODULE_FILE="$NAME" ## for 'shinken' init script to see that it's called by us
34 "$curdir/shinken" -m poller $@
36 exit $?