Hi again,
On Sat, Dec 25, 2021 at 08:27:58PM +0000, Tomas Janousek wrote:
This entry in the systemd 250 NEWS gives me hope this might be fixed in a nice way eventually:
- A new service unit file setting ExitType= has been added that
specifies when to assume a service has exited. By default systemd
only watches the main process of a service. By setting
ExitType=cgroup it can be told to wait for the last process in a
cgroup instead.
I'll probably experiment with it once systemd 250 lands in testing, unless someone beats me to it.
I can confirm that using ExitType=cgroup fixes the issue as well—systemd now waits for all processes spawned by anacron to exit.
|