[Bug 2107308] [NEW] Referenced but unset environment variable evaluates to an empty string
Sundar Nagarajan
2107308 at bugs.launchpad.net
Mon Apr 14 06:12:29 UTC 2025
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
Foundations Bugs, 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
More information about the foundations-bugs
mailing list