Referenced but unset environment variable evaluates to an empty string

Bug #2107308 reported by Sundar Nagarajan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cron (Ubuntu)
New
Undecided
Unassigned

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