fusioninventory / fusioninventory-agent

FusionInventory Agent

Home Page:http://fusioninventory.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation guidelines for autonomous mode?

thbar opened this issue · comments

Hi!

After reading this:

We are aiming to run fusion inventory in autonomous mode.

If I install the Ubuntu package fusioninventory-agent, it will create a /lib/systemd/system/fusioninventory-agent.service file which is used by systemd to start a process via /usr/bin/fusioninventory-agent --daemon, which (if I understand well) is in managed mode.

Are there guidelines on how to setup the package but without starting in managed mode?

Should I just disable the created systemd service myself?

Thanks!

Yes you can disable the service.and run it manually

@ddurieux thank you for your answer ; this sounds reasonable, I'll close the ticket for now. Thanks!

In case it helps someone, one trick is to mask the service ; it will ensure it does not run at boot.

In Ansible speak:

- name: Attempt to ensure the agent never runs on its own
  ansible.builtin.systemd:
    name: fusioninventory-agent.service
    masked: yes
    enabled: no