Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM packages has a cron job setup that uses dedicated file instead of /etc/... #10

Open
func0der opened this issue Jan 15, 2024 · 0 comments

Comments

@func0der
Copy link

I am not that familiar with the setup of RPM packages, but I find the setup of the RPM package kind of confusing.

It creates a /etc/ocsinventory/ocsinventory-agent.cfg file.
As it lies under /etc it is the default place where I would look for the configuration for any software that is installed globally on a system.

Then there is the /etc/sysconfig/ocsinventory-agent which partially duplicates the /etc file.
It seems to only be used by /usr/libexec/ocsinventory-agent/ocsinventory-agent.cron which is used in the systemd service ocsinventory-agent.service.

Why are they two different sets of configs that I have to configure AND find in order to get the agent to work?

As far as I see the cron does not even work if the MODE is not set to cron, which is not really document. At least I did not find anything in the documentation about it (https://wiki.ocsinventory-ng.org/search.html?q=OCSMODE).
The whole package is a guessing game. (The whole client configuration is :P)

Could you shine some light on this, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant