Public bug reported:
Package: smartmontools
Version: 7.4-2build1
Architecture: amd64
The smartmontools package for Ubuntu 24.04 includes two systemd units
(/usr/lib/systemd/system/smartmontools.service and
/usr/lib/systemd/system/smartd.service) with completely identical content.
In addition to that, both units contain the line "Alias=smartd.service".
If we try to enable "smartd.service", we get an error:
# systemctl enable smartd
Failed to enable unit: Refusing to operate on alias name or linked unit file:
smartd.service
Considering that the same package for Ubuntu 22.04 only provides one
unit (/usr/lib/systemd/system/smartmontools.service), the presence of
the second one is questionable.
=====
# cat /usr/lib/systemd/system/smartmontools.service
[Unit]
Description=Self Monitoring and Reporting Technology (SMART) Daemon
Documentation=man:smartd(8) man:smartd.conf(5)
# Typically physical storage devices are managed by the host physical machine
# Override it if you are using PCI/USB passthrough
ConditionVirtualization=no
[Service]
Type=notify
EnvironmentFile=-/etc/default/smartmontools
ExecStart=/usr/sbin/smartd -n $smartd_opts
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
Alias=smartd.service
# cat /usr/lib/systemd/system/smartd.service
[Unit]
Description=Self Monitoring and Reporting Technology (SMART) Daemon
Documentation=man:smartd(8) man:smartd.conf(5)
# Typically physical storage devices are managed by the host physical machine
# Override it if you are using PCI/USB passthrough
ConditionVirtualization=no
[Service]
Type=notify
EnvironmentFile=-/etc/default/smartmontools
ExecStart=/usr/sbin/smartd -n $smartd_opts
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
Alias=smartd.service
=====
Best regards,
kodu.cloud team.
** Affects: smartmontools (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/2079015
Title:
Redundant systemd unit smartd.service
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/smartmontools/+bug/2079015/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs