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

Bug 244870

Summary: sys-fs/device-mapper-1.02.27: dmeventd should start before lvm and has useless --pidfile option
Product: Gentoo Linux Reporter: Robert A. <r.a>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WORKSFORME    
Severity: normal CC: agk, emmanuelrosa
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: start /etc/init.d/dmeventd before /etc/init.d/lvm
remove pidfile option from /etc/init.d/dmeventd
alternative pidfile (/root/dmeventd.pid instead of /var/run/dmeventd.pid)

Description Robert A. 2008-10-29 11:19:38 UTC
/etc/init.d/dmeventd should start before lvm (at least with baselayout2) in the boot runlevel, otherwise snapshotted volumes produce error messages when starting lvm.
Comment 1 Robert A. 2008-10-29 11:21:03 UTC
Created attachment 170200 [details, diff]
start /etc/init.d/dmeventd before /etc/init.d/lvm
Comment 2 Wormo (RETIRED) gentoo-dev 2008-10-29 20:46:34 UTC
Thanks for reporting this issue and submitting a fix :)
Assigning to maintainers.
Comment 3 Robert A. 2008-11-11 17:56:19 UTC
Created attachment 171445 [details, diff]
remove pidfile option from /etc/init.d/dmeventd


--pidfile is being ignored by /sbin/dmeventd because its a compile time option.. so it can be removed from the init script
Comment 4 Robert A. 2008-11-11 20:32:02 UTC
Created attachment 171463 [details, diff]
alternative pidfile (/root/dmeventd.pid instead of /var/run/dmeventd.pid)


another problem i stumbled across:
there is a problem stopping dmeventd when you start dmeventd in the boot runlevel and have /var on a different volume than / because the pidfile /var/run/dmeventd.pid isnt visible anymore.
a solution for me is to use /root/dmeventd.pid as pidfile.. but thats probably not an ideal solution.. anyone got an idea?
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2008-11-11 20:57:13 UTC
Better approach would be to change the init script to let start-stop-daemon fork it and let s-s-d write the pidfile. Just use the -d option with dmeventd for this, that way we don't have to set the pidfile at compile time.

Or, patch the code to take a pidfile option.
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2008-11-11 21:01:36 UTC
(In reply to comment #3)
> Created an attachment (id=171445) [edit]
> remove pidfile option from /etc/init.d/dmeventd
> 
> 
> --pidfile is being ignored by /sbin/dmeventd because its a compile time
> option.. so it can be removed from the init script
> 

The --pidfile option is actually being passed to s-s-d, not dmeventd, however dmeventd is forking after the fact.
Comment 7 Robert A. 2009-01-11 23:19:47 UTC
not using dmeventd works for me..