Bug 707877 - hwclock-save.service lacks [Install] section
Summary: hwclock-save.service lacks [Install] section
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-26 08:44 UTC by Daniel Mach
Modified: 2011-05-30 11:36 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-30 11:36:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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".


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