Bug 792334

Summary: nscd usrMove of service file broken
Product: [openSUSE] openSUSE Tumbleweed Reporter: Christian Boltz <suse-beta>
Component: BasesystemAssignee: Frederic Crozat <fcrozat>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: aj, fcrozat, schwab
Version: 13.1 Milestone 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christian Boltz 2012-12-02 19:04:23 UTC
The nscd.service file moved to /usr/lib/systemd/system/nscd.service (previously /lib/systemd/system/nscd.service), but this is not completely handled on upgrade.

I still have

# ls -l /etc/systemd/system/*/nscd*
lrwxrwxrwx 1 root root 32  2. Dez 19:38 
    /etc/systemd/system/runlevel3.target.wants/nscd.service
    -> /lib/systemd/system/nscd.service
lrwxrwxrwx 1 root root 32  2. Dez 19:38
    /etc/systemd/system/runlevel5.target.wants/nscd.service
    -> /lib/systemd/system/nscd.service
Comment 1 Andreas Jaeger 2012-12-02 21:01:49 UTC
Frederic, any idea what needs to be done in the glibc spec fail?
Comment 2 Frederic Crozat 2012-12-03 09:54:59 UTC
hmm, I have put migration script in systemd but I'm wondering if we shouldn't move part of it in the systemd macro..

(script is :
# migrate any symlink which may refer to the old path
for f in $(find /etc/systemd/system -type l -xtype l); do
  new_target="/usr$(readlink $f)"
  [ -f "$new_target" ] && ln -s -f $new_target $f || :
done

)
Comment 3 Andreas Jaeger 2012-12-03 15:49:09 UTC
So, let me move the bug to you for proper handling.
Comment 4 Christian Boltz 2013-01-20 19:18:57 UTC
This seems to be fixed in the meantime (Factory around 12.3 beta1) - I noticed some rpm %post scripts fixed the symlinks while updating to latest Factory, and don't have broken symlinks in /etc/systemd/system anymore.

Frederic, if you also consider this fixed, feel free to close this bugreport ;-)
Comment 5 Frederic Crozat 2013-01-21 08:29:24 UTC
let's close it, the initial migration was broken, I fixed it later..