Public bug reported:

Output of lsb_release -rd
No LSB modules are available.
Description:    Ubuntu 24.04.2 LTS
Release:        24.04

apt-cache policy smartmontools
smartmontools:
  Installed: 7.4-2build1
  Candidate: 7.4-2build1
  Version table:
 *** 7.4-2build1 500
        500 https://us.archive.ubuntu.com/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status


This warning (not error) appears in journalctl log:

smartmontools.service: Referenced but unset environment variable
evaluates to an empty string: smartd_opts

Fix:
Add one line to /etc/default/smartmontools setting smartd_opts to an empty 
string

Existing file /etc/default/smartmontools:

# Defaults for smartmontools initscript (/etc/init.d/smartmontools)
# This is a POSIX shell fragment

# List of devices you want to explicitly enable S.M.A.R.T. for
# Not needed (and not recommended) if the device is monitored by smartd
#enable_smart="/dev/hda /dev/hdb"

# uncomment to pass additional options to smartd on startup
#smartd_opts="--interval=1800"


File with fix (additional line) added:
# Defaults for smartmontools initscript (/etc/init.d/smartmontools)
# This is a POSIX shell fragment

# List of devices you want to explicitly enable S.M.A.R.T. for
# Not needed (and not recommended) if the device is monitored by smartd
#enable_smart="/dev/hda /dev/hdb"

# uncomment to pass additional options to smartd on startup
#smartd_opts="--interval=1800"
smartd_opts=""

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

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

Title:
  smartmontools.service: Referenced but unset environment variable
  evaluates to an empty string: smartd_opts

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to