[Fusioninventory-devel] Fusioninventory-agent + systemd

Remi Collet Fedora at FamilleCollet.com
Sat Apr 14 15:29:27 UTC 2012


Hi,

Here is a working systemd configuration.

Envirment File
(/etc/sysconfig/fusioninventory-agent ou équivalent)

# Add tools directory if needed (tw_cli, hpacucli, ipssend, ...)
PATH=/sbin:/bin:/usr/sbin:/usr/bin
# Global options (debug for verbose log, rpc-trust-localhost for yum-plugin)
FUSINVOPT="--debug --rpc-trust-localhost"


Systemd Unit file

[Unit]
Description=FusionInventory agent
After=syslog.target network.target

[Service]
EnvironmentFile=/etc/sysconfig/fusioninventory-agent
ExecStart=/usr/bin/fusioninventory-agent $FUSINVOPT
--logfile=/var/log/fusioninventory-agent/service.log --daemon-no-fork

[Install]
WantedBy=multi-user.target



N.B. server, tag, ... could be configured in agent.log or using
FUSINVOPT (I prefer the later), ex:
FUSINVOPT="--debug --rpc-trust-localhost --tag=FUS
--server=http://localhost/glpi/plugins/fusioninventory/"



More information about the Fusioninventory-devel mailing list