# Copyright (C) 2009-2011:
#    Gabes Jean, naparuba@gmail.com
#    Gerhard Lausser, Gerhard.Lausser@consol.de
#    Gregory Starck, g.starck@gmail.com
#    Hartmut Goebel, h.goebel@goebel-consult.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Shinken is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Shinken.  If not, see <http://www.gnu.org/licenses/>.


# /etc/default/shinken
# $ETC$ is where we put all configuration files
# $VAR$ is where we put some variables files (replaced by $RUN$ and $LOG$ for now)
# $RUN$ is where we put pid files
# $LOG$ is where we put log files
# $SCRIPTS_BIN$ is where the launch scripts will be send


## These vars will override the hardcoded ones in init script ##
ETC=/etc/shinken
VAR=/var/lib/shinken
BIN=/usr/sbin
RUN=/var/run/shinken
LOG=/var/log/shinken


### ARBITER PART ###
# location of the shinken configuration file
# Please update $ETC$ instead of this one.
SHINKENCFG="$ETC/shinken.cfg"


# The command to launch
ARBITERDAEMON=$BIN/shinken-arbiter

#The ARBITER PID
ARBITERPID=/var/run/shinken/arbiterd.pid
ARBITERDEBUGFILE="$LOG/arbiter-debug.log"


### SCHEDULER PART ###
# location of the scheduler daemon configuration
SCHEDULERCFG="$ETC/daemons/schedulerd.ini"

# The command to launch
SCHEDULERDAEMON=$BIN/shinken-scheduler

# The SCHEDULER PID
SCHEDULERPID="$RUN/schedulerd.pid"

SCHEDULERDEBUGFILE="$LOG/scheduler-debug.log"


### POLLER PART ###
# location of the poller daemon configuration
POLLERCFG="$ETC/daemons/pollerd.ini"

# The command to launch
POLLERDAEMON=$BIN/shinken-poller

# The poller pid
POLLERPID="$RUN/pollerd.pid"

POLLERDEBUGFILE="$LOG/poller-debug.log"


### REACTIONNER PART ###
# location of the reactionner daemon configuration
REACTIONNERCFG="$ETC/daemons/reactionnerd.ini"

# The command to launch
REACTIONNERDAEMON=$BIN/shinken-reactionner

#The reactionner pid
REACTIONNERPID="$RUN/reactionnerd.pid"

REACTIONNERDEBUGFILE="$LOG/reactionner-debug.log"


### BROKER PART ###
# location of the broker daemon configuration
BROKERCFG="$ETC/daemons/brokerd.ini"

# The command to launch
BROKERDAEMON=$BIN/shinken-broker

# The broker pid
BROKERPID="$RUN/brokerd.pid"

BROKERDEBUGFILE="$LOG/broker-debug.log"


### PROVIDER PART ###
# location of the broker daemon configuration
PROVIDERCFG="$ETC/daemons/providerd.ini"

# The command to launch
PROVIDERDAEMON=$BIN/shinken-provider

# The broker pid
PROVIDERPID="$RUN/providerd.pid"

PROVIDERDEBUGFILE="$LOG/provider-debug.log"


### RECEIVER PART ###
# location of the broker receiver configuration
RECEIVERCFG="$ETC/daemons/receiverd.ini"

# The command to launch
RECEIVERDAEMON=$BIN/shinken-receiver

#The receiver pid
RECEIVERPID="$RUN/receiverd.pid"

RECEIVERDEBUGFILE="$LOG/receiver-debug.log"



### SYNCHRONIZER PART ###
# location of the sync daemon configuration
SYNCHRONIZERCFG="$ETC/synchronizer.cfg"

# The command to launch
SYNCHRONIZERDAEMON=$BIN/shinken-synchronizer

# The SKONF PID
SYNCHRONIZERPID="$RUN/synchronizerd.pid"

SYNCHRONIZERDEBUGFILE="$LOG/synchronizer-debug.log"

# nicelevel to run shinken daemon with
NICENESS=5

# user/group for the var/run rights
SHINKENUSER=shinken
SHINKENGROUP=shinken
HOME=`grep ^$SHINKENUSER: /etc/passwd | cut -d: -f 6`


