summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2011-06-11 15:59:04 +0200
committerRemi Collet <fedora@famillecollet.com>2011-06-11 15:59:04 +0200
commit78a23e6db6d29f1c2bf9c437a3f185f900e34e3f (patch)
tree6c44264c8bdea8d69b152d22a1dc34e2319b1169
parent3b1edc9113ede4959a55f3546eea0bdcf042d9c2 (diff)
fusioninventoryagent, add LSB block for service
-rwxr-xr-xfusioninventory-agent.init11
-rw-r--r--fusioninventory-agent.spec5
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)