Referenced but unset environment variable evaluates to an empty string
Bug #2107308 reported by
Sundar Nagarajan
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.