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

sysstat cron jobs do not run with fcron #49623

Closed
ericjunkermann opened this issue Mar 31, 2024 · 2 comments
Closed

sysstat cron jobs do not run with fcron #49623

ericjunkermann opened this issue Mar 31, 2024 · 2 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 fcron-3.3.1_2

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

No response

Expected behaviour

The sysstat cron jobs (now in /etc/cron.d/sysstat) should run normally.

Actual behaviour

The sysstat cron jobs do not run, and fcron reports an error that /etc/cron.hourly does not exist.

The latter is true because apparently the update of systat removed it (because it was not empty?).

The former is because fcron does not use /etc/cron.d - it contains a script check_system_crontabs.sh which is in fcron's upstream repository but is NOT distributed - see comments in that file for how to use it (if it was distributed!) - the comments do not say that it overwrites /var/spool/cron/systab.orig and the corresponding binary file which loses the hourly.cron , daily.cron ... which were previously there. Those interval files need to be somewhere else (/etc/fcrontab ?) so that they will still run.

Steps to reproduce

See above - this is a state of affairs, not an action.

@ericjunkermann ericjunkermann added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Mar 31, 2024
@Clos3y
Copy link
Contributor

Clos3y commented Apr 1, 2024

@leahneukirchen

@ahesford
Copy link
Member

ahesford commented Apr 2, 2024

The fact that fcron doesn't support /etc/cron.d is a design decision, not a bug. We ship crontab snippets as a convenience, but users are expected to either use a cron daemon that supports them or else implement their own preferred approach to periodic execution.

If running a script we didn't distribute clobbered the system crontab that runs the rest of the scripts in /etc/cron.*, restore the file from the package and be more careful about running such scripts in the future.

@ahesford ahesford closed this as not planned Won't fix, can't repro, duplicate, stale Apr 2, 2024
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

3 participants