3 # Shinken Starts Shinken
7 # description: Start Shinken daemons
9 # Source function library.
10 if [ -f /etc
/init.d
/functions
]; then
11 .
/etc
/init.d
/functions
17 SHINKEN_BIN
=/usr
/local
/shinken
/bin
18 SHINKEN_VAR
=/usr
/local
/shinken
/var
/
21 echo "Starting Shinken Daemons ..."
22 su
- $SHINKEN_USER -c "$SHINKEN_BIN/launch_scheduler.sh"
23 su
- $SHINKEN_USER -c "$SHINKEN_BIN/launch_poller.sh"
24 su
- $SHINKEN_USER -c "$SHINKEN_BIN/launch_reactionner.sh"
25 su
- $SHINKEN_USER -c "$SHINKEN_BIN/launch_broker.sh"
26 su
- $SHINKEN_USER -c "$SHINKEN_BIN/launch_arbiter.sh"
27 # chown -R $SHINKEN_GROUP:$NAGIOS_GROUP $SHINKEN_VAR
34 echo "Stopping Shinken Daemons ..."
35 su
- $SHINKEN_USER -c "$SHINKEN_BIN/stop_scheduler.sh"
36 su
- $SHINKEN_USER -c "$SHINKEN_BIN/stop_poller.sh"
37 su
- $SHINKEN_USER -c "$SHINKEN_BIN/stop_reactionner.sh"
38 su
- $SHINKEN_USER -c "$SHINKEN_BIN/stop_broker.sh"
39 su
- $SHINKEN_USER -c "$SHINKEN_BIN/stop_arbiter.sh"
41 count
=$
(ps aux |
grep python2.6 |
grep -v grep |
wc -l)
42 if [ $count -gt 0 ]; then
65 echo $
"Usage: $0 {start|stop|restart}"