Xymon Mailing List Archive search

hobbit.sh stop does no kill vmstat

4 messages in this thread

list Charles Jones · Tue, 06 Jun 2006 11:45:56 -0700 ·
when I do ./hobbit.sh stop, vmstat is not killed:
$ ps xw |grep hobbit
26903 ?        S      0:00 sh -c vmstat 300 2 1>/users/monitor/local/hobbit/client/tmp/hobbit_vmstat.my-host.26883 2>&1; mv /users/monitor/local/hobbit/client/tmp/hobbit_vmstat.my-host.26883 /users/monitor/local/hobbit/client/tmp/hobbit_vmstat.my-host

I noticed that if I do several "hobbit.sh restart", there will be extra vmstat processes running.
For now I am manually killing them via "pkill vmstat" (on linux), after I stop or restart Hobbit.

-Charles
list Ralph Mitchell · Tue, 6 Jun 2006 13:55:53 -0500 ·
The man page for vmstat shows that the parameters are "delay" and "count".
So, for:

   vmstat 300 2

it should give the first line of info, pause five minutes, then give the
second line, then exit.  Try it in a terminal window and see...  In other
words, it goes away anyway of its own accord, 5 minutes after it started.

Ralph Mitchell
quoted from Charles Jones


On 6/6/06, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
when I do ./hobbit.sh stop, vmstat is not killed:
$ ps xw |grep hobbit
26903 ?        S      0:00 sh -c vmstat 300 2
1>/users/monitor/local/hobbit/client/tmp/hobbit_vmstat.my-host.26883
2>&1; mv
/users/monitor/local/hobbit/client/tmp/hobbit_vmstat.my-host.26883
/users/monitor/local/hobbit/client/tmp/hobbit_vmstat.my-host

I noticed that if I do several "hobbit.sh restart", there will be extra
vmstat processes running.
For now I am manually killing them via "pkill vmstat" (on linux), after
I stop or restart Hobbit.

-Charles

list Mike Arnold · Tue, 6 Jun 2006 12:15:12 -0700 (MST) ·
quoted from Charles Jones
Charles Jones wrote:
I noticed that if I do several "hobbit.sh restart", there will be extra
vmstat processes running.
For now I am manually killing them via "pkill vmstat" (on linux), after
I stop or restart Hobbit.
Leaving them should be harmless: they only run for 5 minutes and then
exit.  Conversely, sending kill to all the session followers could be
useful, but seems to be platform independent.

--
-m

... so long as the people do not care to exercise their freedom, those
who wish to tyrranize will do so; for tyrants are active and ardent,
and will devote themselves in the name of any number of gods, religious
and otherwise, to put shackles upon sleeping men.
                -- Voltarine de Cleyre
list Charles Jones · Tue, 06 Jun 2006 12:21:23 -0700 ·
Doh, quite right. I should have tested to see if they died on their own. 
It's now a non issue.

-Charles
quoted from Mike Arnold

Mike Arnold wrote:
Charles Jones wrote:
  
I noticed that if I do several "hobbit.sh restart", there will be extra
vmstat processes running.
For now I am manually killing them via "pkill vmstat" (on linux), after
I stop or restart Hobbit.

    
Leaving them should be harmless: they only run for 5 minutes and then
exit.  Conversely, sending kill to all the session followers could be
useful, but seems to be platform independent.

--
-m

... so long as the people do not care to exercise their freedom, those
who wish to tyrranize will do so; for tyrants are active and ardent,
and will devote themselves in the name of any number of gods, religious
and otherwise, to put shackles upon sleeping men.
                -- Voltarine de Cleyre