Bug 2257883

Summary: Service files refer to wrong systemd-tmpfile.d configuration file
Product: [Fedora] Fedora EPEL Reporter: Duncan Mortimer <duncan.mortimer>
Component: nutAssignee: Michal Hlavinka <mhlavink>
Status: MODIFIED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel9CC: cra, james, mhlavink, orion, scott, tests
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: nut-2.8.2-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Duncan Mortimer 2024-01-11 12:27:06 UTC
Description of problem:
On startup of the nut-monitor, nut-driver-enumerator and nut-driver@ services error is reported:

systemd-tmpfiles[5767]: Failed to open '/usr/lib/tmpfiles.d/nut-client.conf': No such file or directory

The nut-client rpm provides the file /usr/lib/tmpfiles.d/nut-common.conf which I assume is what these systemd service files should be referring to.

Version-Release number of selected component (if applicable): 2.8.0-3.el9


How reproducible:
Every time

Steps to Reproduce:
1. install nut tools
2. configure UPS driver/monitor
3. systemctl start nut-driver-enumerator

Actual results:
systemd-tmpfiles[5767]: Failed to open '/usr/lib/tmpfiles.d/nut-client.conf': No such file or directory

Expected results:
No error reported

Additional info:

Comment 1 Jean-Philippe Pialasse 2024-04-30 13:51:31 UTC
same issue on el8
nut-client-2.8.0-3.el8.x86_64
ExecStartPre=-/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/nut-client.conf

but seems ok on el7
nut-client-2.8.0-2.el7.x86_64
ExecStartPre=-/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/nut-common.conf

both have file usr/lib/tmpfiles.d/nut-common.conf