Bug 739369

Summary: Upgrading FC14 to FC15 leaves no acpid, smartd, hwclock, readahead, cron running after reboot
Product: [Fedora] Fedora Reporter: Ian Donaldson <iand>
Component: systemdAssignee: Lennart Poettering <lpoetter>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: harald, johannbg, kay, lpoetter, metherid, mschmidt, notting, plautrba, sgallagh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-21 17:59:37 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 Ian Donaldson 2011-09-18 09:49:50 UTC
Description of problem:

Using yum update distro-sync from FC14 to FC15 doesn't leave
you with acpid, smartd, hwclock, readahead services enabled.

(and cron too, see https://bugzilla.redhat.com/show_bug.cgi?id=735802)


Version-Release number of selected component (if applicable):

systemd-26-9.fc15.i686



How reproducible:

100%

Steps to Reproduce:
1.yum --releasever=15 --disableplugin=presto distro-sync
2.yum groupinstall Base
3.grub-install /dev/whatever
4.sync; sync; reboot -f
  
Actual results:

ls -l /.readahead    - file doesn't exist
ps -ef|grep acpid    - not running
ps -ef|grep smartd   - not running, despite enabled in /etc/rc*.d


Expected results:

If running before the upgrade they should be running after 


Additional info:

These workaround the problem:

 ---
mkdir -p /etc/systemd/system/default.target.wants
ln -s /lib/systemd/system/systemd-readahead-collect.service /etc/systemd/system/default.target.wants/systemd-readahead-collect.service
ln -s /lib/systemd/system/systemd-readahead-replay.service /etc/systemd/system/default.target.wants/systemd-readahead-replay.service

mkdir -p /etc/systemd/system/sysinit.target.wants
ln -s /lib/systemd/system/hwclock-load.service /etc/systemd/system/sysinit.target.wants/hwclock-load.service

ln -s /lib/systemd/system/acpid.service /etc/systemd/system/multi-user.target.wants/acpid.service

ln -s /lib/systemd/system/smartd.service /etc/systemd/system/multi-user.target.wants/smartd.service

 ---

See https://bugzilla.redhat.com/show_bug.cgi?id=735802 for the cron workaround.

I suspect these (and the cron workaround) should be mentioned
in the distro-sync to FC15 section of the upgrade notes as they
will affect every upgrade.

There may be other services similary affected; these are just the ones
I've spotted in my travels so far.

Comment 1 Bill Nottingham 2011-09-19 19:14:32 UTC
This is a bug in the scripts for the converted services - please file against them.

Comment 2 Lennart Poettering 2011-09-21 17:59:37 UTC
hwclock is unnecessary since PID 1 calls the one necessary ioctl anyway.

readahead got obsoleted by systemd's readahead implementation.

For the others please file individual bugs against those packages.

Comment 3 Ian Donaldson 2011-09-21 22:49:53 UTC
I got the hwclock, readahead etc links from a freshly installed FC15 system;
they were missing on my distro-sync upgraded one.

The readahead link is for the new systemd based readahead implementation.