  
  NAME="shinken-reactionner"
  
+@@ -51,6 +47,31 @@ curdir=$(dirname "$0")
+ 
+ export SHINKEN_MODULE_FILE="$NAME"  ## for 'shinken' init script to see that it's called by us
+ 
+-"$curdir/shinken" $@ reactionner
++case "$1" in 
++  start)
++    "$curdir/shinken" start reactionner
++    ;;
++  stop)
++    "$curdir/shinken" stop reactionner
++    ;;
++  check|checkconfig)
++    "$curdir/shinken" checkconfig reactionner
++    ;;
++  status)
++    "$curdir/shinken" status reactionner
++    ;;
++  reload)
++    "$curdir/shinken" reload reactionner
++    ;;
++  restart|force-reload)
++    "$curdir/shinken" restart reactionner
++    ;;
++  *)
++    echo "Usage: /etc/init.d/shinken-reactionner [-d] {start|stop|reload|restart|check}
++
++  -d  start requested module(s) in debug mode, only useful with start|restart
++" || true
++    exit 1
++esac
+ 
+ exit $?
 diff --git a/bin/init.d/shinken-receiver b/bin/init.d/shinken-receiver
-index e7b8b5f..241119a 100755
+index e7b8b5f..7b77053 100755
 --- a/bin/init.d/shinken-receiver
 +++ b/bin/init.d/shinken-receiver
-@@ -44,6 +44,7 @@
+@@ -34,16 +34,12 @@
+ #                    configuration
+ ### END INIT INFO
+ 
+-### BEGIN INIT INFO Redhat
+-# Shinken        Starts Shinken Receiver
+-#
+-# chkconfig: 345 99 01
+-# description: Start Shinken receiver daemon
+-### END INIT INFO
++
+ 
  # Author: Gabes Jean <naparuba@gmail.com>
  #         Olivier LI-KIANG-CHEONG <lkco@gezen.fr>
  

+. /lib/lsb/init-functions
 
 NAME="shinken-skonf"


diff --git a/bin/init.d/shinken b/bin/init.d/shinken
index ce51dcc..4c49de2 100755
--- a/bin/init.d/shinken
+++ b/bin/init.d/shinken
@@ -23,10 +23,10 @@
 
 ### BEGIN INIT INFO
 # Provides:          shinken
-# Required-Start:    $local_fs
-# Required-Stop:     $local_fs
+# Required-Start:    $local_fs $remote_fs
+# Required-Stop:     $local_fs $remote_fs
 # Default-Start:     2 3 4 5
-# Default-Stop:      S 0 1 6
+# 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.
@@ -40,11 +40,22 @@
 # Deadlink :(
 # http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
 
+. /lib/lsb/init-functions
 
 NAME="shinken"
 
-## If you want to give a test to the BETA skonf tool, you can add skonf to the list below
-AVAIL_MODULES="scheduler poller reactionner broker receiver arbiter"
+
