restarting cron kills children on 16.04 - did not kill on 14.04

Bug #1527348 reported by Thomas d'Otreppe
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cron (Debian)
Fix Released
Unknown
cron (Ubuntu)
Triaged
Medium
Unassigned
Xenial
Triaged
Medium
Unassigned

Bug Description

In the middle of a script run by cron, I'm restarting the cron service (service cron restart).

The script finishes just fine on 14.04 (and keeps doing whatever is after the cron restart). On 16.04, it kills the script meaning that it kills all its children.

Behavior should be reverted where children are not killed upon restart.

Tags: xenial
Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :

possibly a dupe of bug 1541302 (beeing x-linked already by comment)

tags: added: xenial
Changed in cron (Ubuntu):
status: New → Confirmed
Changed in cron (Ubuntu):
importance: Undecided → High
importance: High → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

This is fixed in Debian with the following change:

cron (3.0pl1-128) unstable; urgency=medium

  * d/cron.service: Use KillMode=process to kill only the daemon.
    The default of KillMode=control-group kills all the processes in the control group, for example when restarting the daemon. This is a deviation from past behavior we do not want. Thanks, Alexandre Detiste! Closes: #783683

Changed in cron (Ubuntu):
status: Confirmed → Triaged
Changed in cron (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.