-
Notifications
You must be signed in to change notification settings - Fork 51
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
systemd kills dma after forking to background and unit terminates #128
Comments
|
For this specific backup program, setting
Unfortunately all systemd service specific modifications don't generalize (1. & 5.) - I would like dma to work like postfix would work on a system, without having to edit all kinds of service files (and likely forgetting one). |
I believe a process can be moved into any cgroup you have permission to access. If need be a On the This is all just talking thru the design options. Socket activation might be the right move. I guess create a fifo in $SPOOLDIR and write to it and see if the dma.service responds before daemonizing? Maybe just read from the socket and make sure you get a good version response. |
I was thinking of using a |
I am using systemd timers to schedule backup runs. Mails sent after backup never arrive, presumably because:
mail
mail
invokesdma
(assendmail
)dma
daemon()
izes after writing the queue file, effectively exitingdma
from the view ofmail
mail
and subsequently backup software exitdma
is killed, the queue file stays in place and never gets deliveredI am not sure how to generically fix this. One option would be to have a systemd unit that gets triggered on a socket, running a
dma -q
. If this socket is active, then dma would terminate instead of trying to deliver itself. Of course this requires installing and activating a systemd unit, but I don't see how we could do it without.Seeking comments.
The text was updated successfully, but these errors were encountered: