[systemd-devel] How to stop systemctl --user processes before backup runs then restart

Barry Scott barry at barrys-emacs.org
Thu Jan 4 19:35:05 UTC 2018


On Thursday, 4 January 2018 13:08:33 GMT Colin Guthrie wrote:
> Barry Scott wrote on 31/12/17 17:41:
> > I think that for my backups to run for a user I will need to stop their
> > systemd user services.
> Out of curiosity, why do you think that the process needs to be stopped
> for the backups to run?

The process of concern are running fetchmail that is calling into dovecot.

If I do not stop dovecot the Mail dir will not be consistent.
If I do not stop the fetchmail process then dovecot will be called
and the backup can see an inconsistent state.

How do I know this? Becuase I created bad backups in the past.

systemd --user is great at running the fetchmail processes for
the sand boxed email users. I just need to figure out how to stop them
in a way that is "systemd" smart.

Barry




More information about the systemd-devel mailing list