Re: need for open-minded help with popularity-contest with systemd timer
Richard Lewis <richard.lewis.debian-gM/[email protected]> Thu, 30 Jul 2026 12:34:48 +0100
| Newsgroups | gmane.linux.debian.devel.general |
|---|---|
| Message-ID | <[email protected]> |
Simon McVittie <[email protected]> writes: > On Sun, 26 Jul 2026 at 09:52:37 +0100, Richard Lewis wrote: >>Simon Richter <[email protected]> writes: >>> Can we create a systemd service that sends a mail, and has its own >>> lifetime and permissions? >> >>I think all you need is: >> >>1. a command that takes mail as input, and then passes it to the server >>(this command is run in the caller's cgroup - it will block only until >>the "passes off" part is done, and maybe some basic syntax checking - >>then it can exit) >> >>2. a server that waits for input, and then calls mail(1) to deliver >>it. (I think as long as the server is in a separate systemd .service >>this will all work, as whatever processes the local mta start wont be >>killed if the .service is persistent.) > > Thinking outside this particular box in the spirit of open-mindedness, > is there a reason why popcon needs to submit data via email? dont tbink so - popcon already defaults to http and email is already an opt-in. but there are a lot of other packages that want to email the admin from a .service where there isnt an alternative (my fav is logcheck, but there are many)