Bug 707877 - hwclock-save.service lacks [Install] section
hwclock-save.service lacks [Install] section
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: systemd (Show other bugs)
15
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lennart Poettering
Fedora Extras Quality Assurance
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-26 04:44 EDT by Daniel Mach
Modified: 2011-05-30 07:36 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-05-30 07:36:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Daniel Mach 2011-05-26 04:44:05 EDT
$ 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 04:47:10 EDT
in git this service is removed
http://cgit.freedesktop.org/systemd/commit/?id=da2617378523e007ec0c6efe99d0cebb2be994e1
Comment 2 Michal Schmidt 2011-05-26 05:09:43 EDT
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 04:56:46 EDT
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 07:36:21 EDT
You must have misunderstood the 2nd reason in comment #2.
It makes no sense to do "systemctl enable hwclock-save.service".

Note You need to log in before you can comment on or make changes to this bug.