[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#915379: anacron.service: should probably use KillMode=process



Package: anacron
Version: 2.3-26
Severity: normal

anacron.service currently uses KillMode=mixed.  It probably should
not.

KillMode=mixed sends SIGTERM to anacron and then SIGKILL to any
processes started by anacron.  The default (KillMode=control-group)
would send SIGTERM to all processes which is probably what one wantes
if processes started by anacron should be stopped when anacron is (for
example during upgrades).

More likely, anacron should probably use KillMode=process.  Then
stopping anacron would only send SIGTERM to anacron itself and leave
the jobs anacron might have started untouched.  (This is what
cron.service uses.)

Ansgar


Reply to: