From 78a23e6db6d29f1c2bf9c437a3f185f900e34e3f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 11 Jun 2011 15:59:04 +0200 Subject: fusioninventoryagent, add LSB block for service --- fusioninventory-agent.init | 11 ++++++++++- fusioninventory-agent.spec | 5 ++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/fusioninventory-agent.init b/fusioninventory-agent.init index c515805..c2467fd 100755 --- a/fusioninventory-agent.init +++ b/fusioninventory-agent.init @@ -1,10 +1,19 @@ #!/bin/bash # -# chkconfig: 345 88 12 +# chkconfig: - 88 12 # description: FusionInventory Agent # processname: fusioninventory-agent # config: /etc/sysconfig/fusioninventory-agent.pid # pidfile: /var/run/fusioninventory-agent.pid +### BEGIN INIT INFO +# Provides: fusioninventory-agent +# Required-Start: $local_fs $remote_fs $network $named $syslog $time +# Required-Stop: $local_fs $remote_fs $network $named $syslog $time +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: FusionInventory agent +# Description: FusionInventory agent +### END INIT INFO # source function library . /etc/rc.d/init.d/functions diff --git a/fusioninventory-agent.spec b/fusioninventory-agent.spec index 0056786..ddac45a 100644 --- a/fusioninventory-agent.spec +++ b/fusioninventory-agent.spec @@ -172,9 +172,12 @@ FUSINVOPT='--debug --rpc-trust-localhost' # - none (default on install) no activity # - cron (inventory only) use the cron.hourly # - daemon (recommanded) use the service +# DON'T FORGET to enale the service OCSMODE[0]=none -# OCS server URI +# OCS Inventory or FusionInventory server URI # OCSSERVER[0]=your.ocsserver.name +# OCSSERVER[0]=http://your.ocsserver.name/ocsinventory +# OCSSERVER[0]=http://your.glpiserveur.name/glpi/plugins/fusioninventory/ # corresponds with --local=%{_localstatedir}/lib/%{name} # OCSSERVER[0]=local # Wait before inventory (for cron mode) -- cgit