[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] hobbit client init script
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] hobbit client init script
- From: "Japheth J.C. Cleaver" <cleaver (at) redwire.net>
- Date: Fri, 06 Oct 2006 12:51:46 -0700
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=redwire.net; b=FlmA+yj/wg6XRQbD7uj12JGdUZDhN//yJZFz7+ZJCfaFBQ9XzldXRCeYJrdZOu6p6NAlynoaN2ut7Id69cor3y2FOlVJqUQmwfWTv2oaqf7pMPZD+rBkvPHvgheVHdKwl9xs4FxyAy8LdgUa54WXll1m5Sm2Gu3Qb1CVGnD1IBY= ;
- Organization: RedWire Broadband
- References: <452649E8.2080808@sanger.ac.uk> <20061006122921.GA31312@hswn.dk>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666
Henrik Stoerner wrote:
> On Fri, Oct 06, 2006 at 01:19:52PM +0100, Gildas Le Nadan wrote:
>
>> The way the hobbit init script works (at least on debian), a lot of
>> processes are left running on the host when doing a
>> "/etc/init.d/hobbit-client stop".
>>
>> Is there any reason for this?
>
> You mean the vmstat processes ?
>
> The reason is that they run pretty independent of everything else, just
> collecting data over a 5 minute period. They will terminate by
> themselves after at most 5 minutes; and if you're shutting down the
> system, they will get killed.
>
> It's not that it has to be this way, but it was just the easiest way of
> doing it.
A "kill `ps -u hobbit -o pid | grep -v PID`" in the initscript works as
well.
While the subject of initscripts is up, I've been using one locally for
a while that integrates runclient.sh's actions directly into the code.
It's been working well for me, and - combined with more regexing of
BBHOME and redirect variables out of the .spec file - might be useful to
some as a replacement.
Comments welcome :)
http://mirrors.redwire.net/pub/local-rpms/packages/hobbit/hobbit-client.initscript.fedora
http://mirrors.redwire.net/pub/local-rpms/packages/hobbit/hobbit.initscript.fedora
http://mirrors.redwire.net/pub/local-rpms/packages/hobbit/hobbit.spec
Regards,
Japheth Cleaver,
cleaver (at) redwire.net