On Dec 5, 10:42 am, Christian Kerth <christian.ke... / dynamicmedia.at>
wrote:
> > The actual example is, i want to run an application that consists of
> > serveral parts:
>
> > - a webrick server
> > - a background updater
>
> > Prerequisites are:
>
> > - windows (so no daemonize)
> > - no admin rights (so a service under windows is not possible)
>
> > No what is really the best option to spawn those two parts as different
> > processes/threads and do not loose control over them. It must be
> > possible to quite or restart those processes if needed from the main
> > script.
>
> > thx ck
>
> Still no satisfying solution......can somebody help?
>

Daniel suggestion was good, windows have a "start.exe" application
that spawn new process with specific command line.

Since you need "control" them, you should start look at other tools
beyond this topic.

I could suggest you take a look at mongrel_service, which is a service/
console implementation to run ruby+mongrel+rails made in freebasic:

http://mongrel.rubyforge.org/svn/trunk/projects/mongrel_service/

All the requirements are listed in the README.

Take a look at the code, it implements a "console" mode that let you
start/stop (ctrl-c) the background process.

HTH,

Luis