[Bug 1674492] [NEW] cron: /etc/default/cron should not actually be deprecated

Matthew Hall mhall at mhcomputing.net
Mon Mar 20 22:51:19 UTC 2017


Public bug reported:

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 at 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.

** Affects: cron (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cron in Ubuntu.
https://bugs.launchpad.net/bugs/1674492

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

Status in cron package in Ubuntu:
  New

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 at 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/1674492/+subscriptions



More information about the foundations-bugs mailing list