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 J.
E: [email protected]
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 J.
E: [email protected]
Ben J. 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 J.
E: [email protected]
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
On Friday 21 July 2006 07:00, Tom wrote:
Ben J. 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).
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 R. [email protected] said:
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
Christian R. wrote:
On Friday 21 July 2006 07:00, Tom wrote:
Ben J. 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 resortSo 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
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.
-Tom
Actually… 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
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.
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs