LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ldirectord stop doesnt not work on free bsd

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: ldirectord stop doesnt not work on free bsd
From: Horms <horms@xxxxxxxxxxxx>
Date: Tue, 20 Sep 2005 19:17:30 +0900
On Tue, Sep 20, 2005 at 02:13:46PM +0530, Ramprasad A Padmanabhan wrote:
> On Tue, 2005-09-20 at 08:36, Horms wrote:
> > On Mon, Sep 19, 2005 at 05:29:11PM +0530, Ramprasad A Padmanabhan wrote:
> > > I got the bug.
> > > The ldirectord looks for the pid directory under /proc
> > > My free bsd machine does not have /proc at all
> > > 
> > > So I changed the script suitably. I hope the ldirectord developers would
> > > look at a more genereic alternative to find out live pids than /proc
> > 
> > I am happy to consider patches to make this more generic.
> > To my knowledge you are the first person to try using
> > this code on a non-Linux system.
> 
> Thank you, 
>   I already have posted the patch I have used on my machine. Works fine.

Is it generic? If so, please send it again, I think that I missed it.

> One more thing is I had to remove out all the print STDERR lines under
> ld_handler* functions. print STDERR on a background process leads to the
> process "hanging" apparently. I can mail you the file I am using in case
> you need it 

Yes, please send that too. Weird that your it causes the
process to hang, but they should probably be removed anyway.

-- 
Horms

<Prev in Thread] Current Thread [Next in Thread>