Stop WEBrick?

I'm launching a WEBrick daemon (linux) from a script. Think I can find enough in the documentation and rails code to do what I need.

But, once started, I haven't found any mention of how to stop it.

Make myself clearer - Currently WEBrick is lauched by calling Ruby on Rail's 'command/script'. Will soon be customised. I want to then stop the WEBrick daemon by scripting (CNTRL-C is not the way - that requires user intervention).

Any clues?

Robert

I'm launching a WEBrick daemon (linux) from a script. Think I can find enough in the documentation and rails code to do what I need.

But, once started, I haven't found any mention of how to stop it.

Make myself clearer - Currently WEBrick is lauched by calling Ruby on Rail's 'command/script'. Will soon be customised. I want to then stop the WEBrick daemon by scripting (CNTRL-C is not the way - that requires user intervention).

Any clues?