cron: /etc/default/cron should not actually be deprecated

Bug #1674492 reported by Matthew Hall
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cron (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The /etc/default/cron file claims that it has been deprecated in its own
comments, and refers to an upstart configuration file (which is deprecated in
Ubuntu 15.10 and up, in favor of systemd):

$ cat /etc/default/cron
# This file has been deprecated. Please add custom options for cron to
# /etc/init/cron.conf and/or /etc/init/cron.override directly. See
# the init(5) man page for more information.
EXTRA_OPTS="-L 15" *** (added on my system for debugging) ***

Yet, the systemd cron.service actually respects the content of the file:

$ cat /lib/systemd/system/cron.service
[Unit]
Description=Regular background program processing daemon
Documentation=man:cron(8)

[Service]
EnvironmentFile=-/etc/default/cron
ExecStart=/usr/sbin/cron -f $EXTRA_OPTS
IgnoreSIGPIPE=false
KillMode=process

[Install]
WantedBy=multi-user.target
(venv) arceo@lab-dev-01:~/poc-connectors/scripts$

So, the inaccurate comments in /etc/default/cron, and other such files (if
this was perhaps an automated error by debhelper or similar tools), should be
corrected accordingly.

Revision history for this message
Matthew Hall (mhall-9) wrote :

This bug is related to two other bugs:

Similar issue where /etc/default/cron is still relevant:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/1078607

Inaccurate commit where file was wrongly marked deprecated, for a bad boot speed related reason, in the now deprecated Upstart system. This should probably be reverted in some way.
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/794082

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cron (Ubuntu):
status: New → Confirmed
Revision history for this message
Adam Baxter (voltagex) wrote :

Still affects Ubuntu Server 22.04 LTS

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.