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

Add a systemd timer for cron-pacmatic #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Celti
Copy link

@Celti Celti commented Apr 16, 2016

Given that the vast majority of Arch systems run systemd, it makes sense to include a systemd timer for cron-pacmatic. By default it will run daily (easily overridden by a drop-in), and it's instantiated to allow easy customisation of the destination address (tested with both local mailboxes and remote addresses).

One change (enabling batch mode for mail) was necessary to cron-pacmatic in order for it to function within a systemd unit at all, and ideally should be present even if the decision is made not to distribute a systemd unit as part of the package.

Patrick Burroughs (Celti) added 2 commits April 15, 2016 16:02
By default, s-nail mail sends mail asynchronously. If running within a
systemd unit, cron-pacmatic will exit before the message is finished
sending and systemd will reap the entire control group, killing the
message. Enabling batch mode prevents this issue.
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

Successfully merging this pull request may close these issues.

1 participant