Closed thbar closed 2 years ago
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
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 bysystemd
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!