Public bug reported:

Warning (not error) appears in journalctl log

cron.service: Referenced but unset environment variable evaluates to an
empty string: EXTRA_OPTS

Reason:

/etc/default/cron contains:

# This file has been deprecated. Please add custom options for cron using
# $ systemctl edit cron.service
# or
# $ systemctl edit --full cron.service


With no reference to EXTRA_OPTS


Fix:
Add one line to /etc/default/cron setting EXTRA_OPTS to empty string:

# This file has been deprecated. Please add custom options for cron using
# $ systemctl edit cron.service
# or
# $ systemctl edit --full cron.service
EXTRA_OPTS=""

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to cron in Ubuntu.
https://bugs.launchpad.net/bugs/2107308

Title:
  Referenced but unset environment variable evaluates to an empty string

Status in cron package in Ubuntu:
  New

Bug description:
  Warning (not error) appears in journalctl log

  cron.service: Referenced but unset environment variable evaluates to
  an empty string: EXTRA_OPTS

  Reason:

  /etc/default/cron contains:

  # This file has been deprecated. Please add custom options for cron using
  # $ systemctl edit cron.service
  # or
  # $ systemctl edit --full cron.service

  
  With no reference to EXTRA_OPTS

  
  Fix:
  Add one line to /etc/default/cron setting EXTRA_OPTS to empty string:

  # This file has been deprecated. Please add custom options for cron using
  # $ systemctl edit cron.service
  # or
  # $ systemctl edit --full cron.service
  EXTRA_OPTS=""

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to