File shinken-1.4-init_scripts.patch of Package shinken
Index: shinken-1.4/bin/init.d/shinken
===================================================================
--- shinken-1.4.orig/bin/init.d/shinken
+++ shinken-1.4/bin/init.d/shinken
@@ -23,18 +23,20 @@
### BEGIN INIT INFO
# Provides: shinken
-# Required-Start: $local_fs
-# Required-Stop: $local_fs
-# Default-Start: 2 3 4 5
-# Default-Stop: S 0 1 6
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Should-Start: $time
+# Should-Stop: smtp
+# Default-Start: 3 5
+# Default-Stop: 0 1 6
# Short-Description: Shinken monitoring daemon
# Description: Shinken is a monitoring tool composed of many separated modules:
-# - arbiter : the main one : control everything else.
-# - scheduler : receives checks/actions from arbiter. Schedules & forwards them to pollers.
-# - poller : receives the checks from a scheduler. Launch them and returns results
-# - broker : manage results by looking at scheduler. Like export to flat file or db.
-# - reactionner : manage the failed checks by looking at scheduler.
-# - receiver : manage all passive data
+# - arbiter : the main one : control everything else.
+# - scheduler : receives checks/actions from arbiter. Schedules & forwards them to pollers.
+# - poller : receives the checks from a scheduler. Launch them and returns results
+# - broker : manage results by looking at scheduler. Like export to flat file or db.
+# - reactionner : manage the failed checks by looking at scheduler.
+# - receiver : manage all passive data
### END INIT INFO
# Deadlink :(
@@ -528,7 +530,7 @@ do_cmd_on() {
## Main:
case "$CMD" in
- start|stop|restart|status)
+ start|stop|restart|status|reload)
do_cmd_on "$CMD" "$SUBMODULES"
;;
check|checkconfig|reload)
Index: shinken-1.4/bin/init.d/shinken-arbiter
===================================================================
--- shinken-1.4.orig/bin/init.d/shinken-arbiter
+++ shinken-1.4/bin/init.d/shinken-arbiter
@@ -23,15 +23,17 @@
### BEGIN INIT INFO
# Provides: shinken-arbiter
-# Required-Start: $all
-# Required-Stop: $all
-# Default-Start: 2 3 4 5
+# Required-Start: $ALL
+# Required-Stop: $ALL
+# Should-Start:
+# Should-Stop:
+# Default-Start: 3 5
# Default-Stop: 0 1 6
# Short-Description: Shinken arbiter daemon
# Description: Shinken is a monitoring tool and the Arbiter
-# is one of its daemon. This one reads the configuration,
-# cuts it into parts and dispatches it. Then it waits
-# for orders from the users to dispatch them too.
+# is one of its daemon. This one reads the configuration,
+# cuts it into parts and dispatches it. Then it waits
+# for orders from the users to dispatch them too.
### END INIT INFO
# Author: Gabes Jean <naparuba@gmail.com>
Index: shinken-1.4/bin/init.d/shinken-poller
===================================================================
--- shinken-1.4.orig/bin/init.d/shinken-poller
+++ shinken-1.4/bin/init.d/shinken-poller
@@ -23,16 +23,18 @@
### BEGIN INIT INFO
# Provides: shinken-poller
-# Required-Start: $all
-# Required-Stop: $all
-# Default-Start: 2 3 4 5
+# Required-Start: $ALL
+# Should-Start:
+# Required-Stop: $ALL
+# Should-Stop:
+# Default-Start: 3 5
# Default-Stop: 0 1 6
# Short-Description: Shinken poller daemon
# Description: Shinken is a monitoring tool and the Poller
-# is one of its daemon. This one gets the configuration from the arbiter
-# His purpose is to actually do the checks ordered by the schedulers,
-# and then sends the results to the schedulers specified in the
-# configuration
+# is one of its daemon. This one gets the configuration from the arbiter
+# His purpose is to actually do the checks ordered by the schedulers,
+# and then sends the results to the schedulers specified in the
+# configuration
### END INIT INFO
### BEGIN INIT INFO Redhat
Index: shinken-1.4/bin/init.d/shinken-reactionner
===================================================================
--- shinken-1.4.orig/bin/init.d/shinken-reactionner
+++ shinken-1.4/bin/init.d/shinken-reactionner
@@ -23,15 +23,17 @@
### BEGIN INIT INFO
# Provides: shinken-reactionner
-# Required-Start: $all
-# Required-Stop: $all
-# Default-Start: 2 3 4 5
+# Required-Start: $ALL
+# Should-Start: $remote_fs
+# Required-Stop: $ALL
+# Should-Stop: $remote_fs
+# Default-Start: 3 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
+# 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
### BEGIN INIT INFO Redhat
Index: shinken-1.4/bin/init.d/shinken-receiver
===================================================================
--- shinken-1.4.orig/bin/init.d/shinken-receiver
+++ shinken-1.4/bin/init.d/shinken-receiver
@@ -23,15 +23,17 @@
### BEGIN INIT INFO
# Provides: shinken-receiver
-# Required-Start: $all
-# Required-Stop: $all
-# Default-Start: 2 3 4 5
+# Required-Start: $ALL
+# Should-Start: $remote_fs
+# Required-Stop: $ALL
+# Should-Stop: $remote_fs
+# Default-Start: 3 5
# Default-Stop: 0 1 6
# Short-Description: Shinken receiver daemon
# Description: Shinken is a monitoring tool and the Receiver
-# is one of its daemon. This one gets the configuration from the arbiter
-# His purpose is to get the broks from the schedulers specified in the
-# configuration
+# is one of its daemon. This one gets the configuration from the arbiter
+# His purpose is to get the broks from the schedulers specified in the
+# configuration
### END INIT INFO
### BEGIN INIT INFO Redhat
Index: shinken-1.4/bin/init.d/shinken-scheduler
===================================================================
--- shinken-1.4.orig/bin/init.d/shinken-scheduler
+++ shinken-1.4/bin/init.d/shinken-scheduler
@@ -23,15 +23,17 @@
### BEGIN INIT INFO
# Provides: shinken-scheduler
-# Required-Start: $all
-# Required-Stop: $all
-# Default-Start: 2 3 4 5
+# Required-Start: $ALL
+# Should-Start:
+# Required-Stop: $ALL
+# Should-Stop:
+# Default-Start: 3 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
+# 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
Index: shinken-1.4/bin/init.d/shinken-skonf
===================================================================
--- shinken-1.4.orig/bin/init.d/shinken-skonf
+++ shinken-1.4/bin/init.d/shinken-skonf
@@ -23,14 +23,16 @@
### BEGIN INIT INFO
# Provides: shinken-skonf
-# Required-Start: $all
-# Required-Stop: $all
-# Default-Start: 2 3 4 5
+# Required-Start: $ALL
+# Should-Start:
+# Required-Stop: $ALL
+# Should-Stop:
+# Default-Start: 3 5
# Default-Stop: 0 1 6
# Short-Description: Shinken skonf daemon
# Description: Shinken is a monitoring tool and the sKonf
-# is one of its daemon. This one is a web service to add/remove
-# or discovery new hosts.
+# is one of its daemon. This one is a web service to add/remove
+# or discovery new hosts.
### END INIT INFO
### BEGIN INIT INFO Redhat
Index: shinken-1.4/bin/init.d/shinken-broker
===================================================================
--- shinken-1.4.orig/bin/init.d/shinken-broker
+++ shinken-1.4/bin/init.d/shinken-broker
@@ -23,15 +23,17 @@
### BEGIN INIT INFO
# Provides: shinken-broker
-# Required-Start: $all
-# Required-Stop: $all
-# Default-Start: 2 3 4 5
+# Required-Start: $ALL
+# Should-Start:
+# Required-Stop: $ALL
+# Should-Stop:
+# Default-Start: 3 5
# Default-Stop: 0 1 6
# Short-Description: Shinken broker daemon
# Description: Shinken is a monitoring tool and the Broker
-# is one of its daemon. This one gets the configuration from the arbiter
-# His purpose is to get the broks from the schedulers specified in the
-# configuration
+# is one of its daemon. This one gets the configuration from the arbiter
+# His purpose is to get the broks from the schedulers specified in the
+# configuration
### END INIT INFO
### BEGIN INIT INFO Redhat