Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 519206

Summary: mdadm-3.3.1-r2 - systemd unit file now missing
Product: Gentoo Linux Reporter: Gerald <newsgroup.spam>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gerald 2014-08-06 12:49:32 UTC
sys-fs/mdadm-3.3-r3 came with a proper mdadm service file.
sys-fs/mdadm-3.3.1-r2 does not:

tux system # find /usr/lib/systemd/system/ -iname "*mda*"
/usr/lib/systemd/system/mdadm-last-resort@.service
/usr/lib/systemd/system/mdadm-last-resort@.timer
/usr/lib/systemd/system/mdadm-grow-continue@.service

Please don't break systemd compatibility.

Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-08-06 15:12:15 UTC
These are the upstream provided systemd files for mdadm:

$ qlist mdadm | grep systemd
/usr/lib/systemd/system/mdmon@.service
/usr/lib/systemd/system/mdmonitor.service
/usr/lib/systemd/system/mdadm-last-resort@.timer
/usr/lib/systemd/system/mdadm-last-resort@.service
/usr/lib/systemd/system/mdadm-grow-continue@.service
/usr/lib/systemd/system-shutdown/mdadm.shutdown

What you are referring to, the old mdadm.service file, was from time before upstream didn't have these other files, but now since upstream does have the files, it was dropped purposely
I can't speak for how these files are used within systemd (because i'm using openrc), but the systemd support is there, just under different filename
Comment 2 Gerald 2014-08-07 10:24:29 UTC
Thank you. I will try to remember qlist!

The service files did indeed work fine and "mdmon" had actually been auto-magically been started using udev.

Sorry for my confusion.