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

latest sysstat upgrade removes sysstat cron jobs #49682

Open
ericjunkermann opened this issue Apr 2, 2024 · 4 comments
Open

latest sysstat upgrade removes sysstat cron jobs #49682

ericjunkermann opened this issue Apr 2, 2024 · 4 comments
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@ericjunkermann
Copy link

Is this a new report?

Yes

System Info

Void 6.6.21_1 x86_64 AuthenticAMD notuptodate hold rFFFF

Package(s) Affected

sysstat-12.7.5_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No, this is a packaging issue.

Expected behaviour

The sysstat cron jobs should continue to run after the upgrade to sysstat-12.7.5_1 .

Actual behaviour

After the upgrade cron jobs do not run. In fact the file containing them has been removed (from /etc/cron.hourly). There is a replacement in /etc/cron.d but my scheduling program - fcron - does not read files in that directory.

Steps to reproduce

  1. On a system with an earlier version of sysstat with fcron and sysstat cron jobs running ...
  2. Upgrade sysstat to 12.7.5_1
  3. Cron jobs no longer run.
@ericjunkermann ericjunkermann added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Apr 2, 2024
@ericjunkermann
Copy link
Author

This is actually a replacement for #49623, because somebody closed that apparently without noticing that it was about sysstat and only secondarily about fcron in regard to which the only point was the the distribution (or not) of check_system_crontabs.sh .

@Clos3y
Copy link
Contributor

Clos3y commented Apr 4, 2024

Regarding the fcron aspect, check_system_crontabs.sh overwrites the system crontab (https://github.com/yo8192/fcron/blob/f49f631186c5ef8881845f43d9e58214dfa897b6/script/check_system_crontabs.sh#L9-L11), so I don't think distributing that script is a good idea.

As for sysstat specifically, I'm not sure what the solution is. When you look at the sysstat makefile (https://github.com/sysstat/sysstat/blob/443ade20dacee37c4e1cac946212f467a22fcac5/Makefile.in#L625-L632) there are only two options for cron on systemd-less distros: either in /etc/cron.d or /etc/cron.{daily,hourly}. But the latter causes cron to halt for 50 minutes (#49553).

@ericjunkermann
Copy link
Author

I get the point about fcron, The script is mentioned in the fcron docs, though probably with insufficient detail of what it does. Not void's problem I guess.

I have read #49553 and it makes sense. I have fixed my own crontab files so that what want to happen actually happens, but it would have been nice if the sysstat upgrade somehow came with a warning for fcron users. (I've been using fcron for years but never bothered about cron.d)

@Clos3y
Copy link
Contributor

Clos3y commented Apr 4, 2024

it would have been nice if the sysstat upgrade somehow came with a warning for fcron users.

Yeah I agree: I'll take some blame for not suggesting that in my issue.

So what do you envisage as the resolution to this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

2 participants