mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 15:05:49 +03:00
[GH-ISSUE #588] [RFE] Include syntax/examples on how to trigger the checks with systemd times #431
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#431
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @e-minguez on GitHub (Dec 8, 2021).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/588
It would be nice to include some examples on how to use systemd timers to replace cron entries.
@cuu508 commented on GitHub (Dec 8, 2021):
Hi @e-minguez, thanks for the suggestion!
Do you mean adding documentation / examples on how to convert OnCalendar syntax to an equivalent cron expression, that can be used in Healthchecks?
Ultimately I'd like to have OnCalendar syntax support in Healthchecks (including multiple OnCalendar schedules for a single check), but that would of course take a fair bit of work to implement ;-)
@e-minguez commented on GitHub (Dec 8, 2021):
Essentially it would be nice to have an example on how to create the systemd service & timer to replace cron entries :)
Currently the examples show how to do it using cron/bash/other languages and I guess it would be helpful to add a simple systemd timer example.
Thanks!
@LordMike commented on GitHub (Nov 4, 2022):
Chiming in to say that I'm moving over to systemd timers to get stuff like logging and easier start/end calls to HC.. And it'd be great to have a
Simple | Cron | SystemDoption for (expected) schedules :)For reference, I'm currently doing my crons like below. It's what I have right now, but I'll probably be expanding on this as I go on. Systemd can do a lot of stuff, like running stuff in sequence, multiple timers, logging stuff, error handling, retries, ..
Once placed, do a
systemctl daemon-reloadDocs:
OnCalendarcan be verified with tools likesystemd-analyze calendar "Mon,Tue *-*-01..04 12:00:00"@djarbz commented on GitHub (Aug 9, 2023):
I wrap my systemd timer services with runitor. Works quite well to capture the log output and start/stop status.
But having support for On calendar syntax would be awesome.
@cuu508 commented on GitHub (Oct 15, 2025):
There's now a docs page with examples here: https://healthchecks.io/docs/monitoring_systemd_tasks/
The "Usage Examples" dialog has snippets intended for copy-pasting. I don't think this would work too well for systemd timers, as the example would show just a fragment of the service file not the whole thing.