fusioninventory / fusioninventory-agent

FusionInventory Agent
http://fusioninventory.org/
GNU General Public License v2.0
253 stars 125 forks source link

Installation guidelines for autonomous mode? #1010

Closed thbar closed 2 years ago

thbar commented 2 years ago

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!

ddurieux commented 2 years ago

Yes you can disable the service.and run it manually

thbar commented 2 years ago

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

thbar commented 2 years ago

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