[chef] Re: Re: About stopping the chef server instance (v0.7)


Chronological Thread 
  • From: Dikang Gu < >
  • To:
  • Subject: [chef] Re: Re: About stopping the chef server instance (v0.7)
  • Date: Mon, 18 Jan 2010 20:01:32 +0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Y5HY7aQL0sS5F4Qz3BNXvxXVyVTM5HfrWBwjd1tDBoagzqnSiqNKWjVI2WM45i51Yy 7euTolmgekRTj1jCv2Sc60NHxZM9h1vOC8FaFxGfJrxSTrs5bRHr5OAaYuOidq8q2shC sqca36oAE/fi7lAPg3ELhYqU5ZPa2+FNo/FKc=

Where can I find the PID file?

I have tried that kill the 8940 is correct, it will kill all the processes associated to this chef server instance. Kill the 8938 does not work.

And by using "ps aux | grep merb", I find that the 8938 is "merb : master", and 8940 is "merb : spawner".

Thanks
Dikang

On Mon, Jan 18, 2010 at 6:47 PM, dreamcat four < "> > wrote:
$ pstree | less

To see the chain of process.

I guess chef now defaults to thin server. Previously mongrel.
(The thin server uses eventmachine to fork its processes.)

The lower number are often started before the higher number.
So maybe 8938 is the Process Group owner, and you might
kill that one. But its better to get from the PID file.

Depending the server, (thin, mongrel, unicorn), the pid file will
look a little bit different.

On Mon, Jan 18, 2010 at 3:19 AM, Dikang Gu < "> > wrote:
> Hi guys,
>
> When I run the "sudo chef-server -c2 -p 4002", I find that 4 processes are
> started:
>
> :~$ sudo chef-server -c2 -p 4002
>  ~ In 8938
> :~$ ps -e | grep ruby
>  3426 ?        00:00:07 ruby
>  4031 ?        00:02:57 ruby
>  4032 ?        00:00:00 ruby
>  4033 ?        00:00:00 ruby
>  8938 ?        00:00:00 ruby
>  8940 ?        00:00:00 ruby
>  8941 ?        00:00:00 ruby
>  8942 ?        00:00:00 ruby
>
> I know that the 8941 listens to the port 4002, and 8942 listens to 4003,
> but what are the 8938 and 8940 used for?
>
> If I'd like to stop this chef server instance, I have to stop the process
> 8940, right? why?
>
> Thanks
> Dikang
>
>




Archive powered by MHonArc 2.6.16.

§