How do you stop a webrick running as -d? I did various searches on google and the mailing list forums and got nothing. Sorry for the noob question. Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060721/0408fb97/attachment-0001.html
Ben Johnson wrote:> How do you stop a webrick running as -d? > > I did various searches on google and the mailing list forums and got > nothing. Sorry for the noob question. > > Thank You, > Ben Johnson > E: bjohnson@contuitive.comI usually do this: ps aux | grep ruby kill -9 [PID] Where PID is the process ID you get from doing the PS command. There might be a better way. -Tom -- Posted via http://www.ruby-forum.com/.
On Friday 21 July 2006 07:00, Tom wrote:> Ben Johnson wrote: > > How do you stop a webrick running as -d?> ps aux | grep ruby > kill -9 [PID] > > Where PID is the process ID you get from doing the PS command. There > might be a better way."kill -9" immediately, forcefully kills the application, without giving it a chance to do a clean shutdown. I''d consider it a last resort ;) So you''ll usually want to use "kill -TERM [PID]" (or just "kill [PID]", since the -TERM is the default). -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060721/d5752ac5/attachment.bin
You''ll hit Ctrl-C to stop WEBrick without "-d" option. The Ctrl-C makes INT signal. So you''ll use "kill -INT [PID]" to stop WEBrick with "-d" option. I hope this helps you. On Fri, 21 Jul 2006 10:11:05 +0000, Christian Reiniger <creinig@dotsrc.org> said:> On Friday 21 July 2006 07:00, Tom wrote: > > Ben Johnson wrote: > > > How do you stop a webrick running as -d? > > > ps aux | grep ruby > > kill -9 [PID] > > > > Where PID is the process ID you get from doing the PS command. There > > might be a better way. > > "kill -9" immediately, forcefully kills the application, without giving it > a chance to do a clean shutdown. I''d consider it a last resort ;) > > So you''ll usually want to use "kill -TERM [PID]" (or just "kill [PID]", > since the -TERM is the default).
Christian Reiniger wrote:> On Friday 21 July 2006 07:00, Tom wrote: >> Ben Johnson wrote: >> > How do you stop a webrick running as -d? > >> ps aux | grep ruby >> kill -9 [PID] >> >> Where PID is the process ID you get from doing the PS command. There >> might be a better way. > > "kill -9" immediately, forcefully kills the application, without giving > it > a chance to do a clean shutdown. I''d consider it a last resort ;) > > So you''ll usually want to use "kill -TERM [PID]" (or just "kill [PID]", > since the -TERM is the default).I can see you''ve never tried killing webrick hehehe. I only use -9 as a last resort as well. -Tom -- Posted via http://www.ruby-forum.com/.
MIYASHITA kensuke wrote:> You''ll hit Ctrl-C to stop WEBrick without "-d" option. > The Ctrl-C makes INT signal. So you''ll use "kill -INT [PID]" > to stop WEBrick with "-d" option. >I just tried that. I think kill -9 is the only way. -Tom -- Posted via http://www.ruby-forum.com/.
Tom wrote:> MIYASHITA kensuke wrote: >> You''ll hit Ctrl-C to stop WEBrick without "-d" option. >> The Ctrl-C makes INT signal. So you''ll use "kill -INT [PID]" >> to stop WEBrick with "-d" option. >> > > I just tried that. I think kill -9 is the only way. > > -TomActually... I take that back. It worked on my webrick server that currently wasn''t hung from inactivity. Very interesting! Any idea why my other servers will not shut down with the -INT option? What could it be an indication of? -Tom -- Posted via http://www.ruby-forum.com/.
Tom wrote in post #109027: ...> I usually do this:> ps aux | grep ruby > kill -9 [PID] > > Where PID is the process ID you get from doing the PS command. There > might be a better way. > > -TomThank you Tom -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
The usual way to start webrick in RoR is with the command: $ rails s and the usual way to stop it is to enter CTRL-C in the same window. On Monday, April 29, 2013 11:05:51 PM UTC-4, Ruby-Forum.com User wrote:> > Tom wrote in post #109027: > > ... > > > I usually do this: > > > ps aux | grep ruby > > kill -9 [PID] > > > > Where PID is the process ID you get from doing the PS command. There > > might be a better way. > > > > -Tom > > Thank you Tom > > -- > Posted via http://www.ruby-forum.com/. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/q-3qJ_oI2LcJ. For more options, visit https://groups.google.com/groups/opt_out.