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

timeline.timer runs even if no timeline configured #788

Open
lnussel opened this issue Feb 22, 2023 · 2 comments
Open

timeline.timer runs even if no timeline configured #788

lnussel opened this issue Feb 22, 2023 · 2 comments

Comments

@lnussel
Copy link
Member

lnussel commented Feb 22, 2023

looking at my journal logs, snapper-timeline.timer activates every hour leaving a log entry even though /etc/snapper/configs/root has TIMELINE_CREATE="no".

How about not enabling the timer by default? Alternatively a generator could enable it at runtime during boot if a config has TIMELINE_CREATE=yes only.

@aschnell
Copy link
Member

ARAIS at least for SUSE systemd services are only enabled if listed in the presets. So the timeline service could be disabled for specific products.

The solution with a generator looks a bit strange to me. It would likely be better if snapper (or snapperd) can enable and start the services depending on the configuration. That is not a tiny task and should also be reviewed by the security team.

@aschnell
Copy link
Member

I have added code to enable the snapper-timeline.timer when setting TIMELINE_CREATE=yes or when creating a new config with TIMELINE_CREATE=yes. Code to disable the timer is not included.

Anyway, with that change we should be able to disable the timer per default on all SUSE product (assuming all have TIMELINE_CREATE=no).

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

No branches or pull requests

2 participants