/etc/init.d/shinken-reactionner is in shinken-common 2.0.3-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #! /bin/sh
### BEGIN INIT INFO
# Provides: shinken-reactionner
# Required-Start: $time $syslog $network $named $local_fs
# Required-Stop: $time $syslog $network $named $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Shinken reactionner daemon
# Description: Shinken is a monitoring tool and the Reactionner
# is one of its daemon. This one gets the configuration from the arbiter
# His purpose is to get the actually do the actions like sending an email
# ordered by the schedulers specified in the configuration
### END INIT INFO
### Chkconfig Header
# Shinken Starts Shinken Reactionner
#
# chkconfig: 345 99 01
# description: Start Shinken reactionner daemon
# Author: Gabes Jean <naparuba@gmail.com>
# Olivier LI-KIANG-CHEONG <lkco@gezen.fr>
SHORTNAME=reactionner
NAME="shinken-$SHORTNAME"
curdir=$(dirname "$0")
export SHINKEN_MODULE_FILE="$NAME" ## for 'shinken' init script to see that it's called by us
if [ -f /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
fi
case "$1" in
start|stop|reload|restart|force-reload|status|check|checkconfig)
"$curdir/shinken" $@ "$SHORTNAME"
exit $?
;;
*)
echo "Usage: /etc/init.d/$NAME [-d] {start|stop|reload|restart|force-reload|status|check}"
exit 1
;;
esac
|