Bug 707877

Summary: hwclock-save.service lacks [Install] section
Product: [Fedora] Fedora Reporter: Daniel Mach <dmach>
Component: systemdAssignee: Lennart Poettering <lpoetter>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: harald, johannbg, lpoetter, metherid, mschmidt, notting, plautrba
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-30 11:36:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Mach 2011-05-26 08:44:05 UTC
$ systemctl enable hwclock-save.service
Unit files contain no applicable installation information. Ignoring.

I believe adding following section to /lib/systemd/system/hwclock-save.service should fix the problem:

[Install]
WantedBy=sysinit.target


If this is really a problem, I'd suggest to audit all systemd services and add this section where missing.

Comment 1 Harald Hoyer 2011-05-26 08:47:10 UTC
in git this service is removed
http://cgit.freedesktop.org/systemd/commit/?id=da2617378523e007ec0c6efe99d0cebb2be994e1

Comment 2 Michal Schmidt 2011-05-26 09:09:43 UTC
WONTFIX for two reasons:
 1. The service is going away, as Harald mentioned.
 2. It is valid to not have an [Install] section if the administrator is not
    expected to enable/disable the service. hwclock-save.service is always
    pulled in from shutdown.target using the symlink
    /lib/systemd/system/shutdown.target.wants/hwclock-save.service
    (BTW, the administrator can still force a service like this to be disabled
     using the masking mechanism - symlinking the service name in
     /etc/systemd/system to /dev/null)

Comment 3 Daniel Mach 2011-05-30 08:56:46 UTC
It may be fixed in git, but it's still not fixed in F15.
I'm running latest packages (incl. updates-testing).

Please keep it open until the change gets into F15.

Comment 4 Michal Schmidt 2011-05-30 11:36:21 UTC
You must have misunderstood the 2nd reason in comment #2.
It makes no sense to do "systemctl enable hwclock-save.service".