How to stop webrick server after calling it as a daemon (-d option)

Solution 1:

Send it a SIGKILL (e.g. by calling kill -9 <pid of ruby> or kill -KILL <pid of ruby>).