[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: mzscheme daemon?



Thanks - that's probably fine, I just don't know enough about it.  I ran
into trouble when I tested starting mzscheme in the background from a shell
prompt - when I logged out, the task was automatically terminated.  I
realize now that this might have been because I didn't think to redirect the
i/o, so it was probably terminating when it lost that.

I thought that simply using "&" in init.d might end up doing the same thing,
although I didn't try it.  So I figured if sendmail has a -bd option, why
can't mzscheme? :)

Anyway, thanks - I'll give it a try your way.

Anton


> -----Original Message-----
> From: Eli Barzilay [mailto:eli@barzilay.org]
> Sent: Wednesday, December 05, 2001 1:13 AM
> To: Anton van Straaten
> Cc: plt-scheme@fast.cs.utah.edu
> Subject: Re: mzscheme daemon?
>
>
> On Dec  5, Anton van Straaten wrote:
> > This worked fine, and my mzscheme daemon is now running happily.  I
> > wondered, though, whether there was some other solution that doesn't
> > require patching mzscheme.
>
> What's wrong with just running it in the background?  -- For my server
> I have this tiny script:
>
> | #!/bin/sh
> | cd /home/eli/scheme/webserver
> |
> | /home/eli/bin/mzscheme -mf server -e -start- -- `hostname` '80' \
> |  < /dev/null > /tmp/webserver-log 2>&1 &
> | echo $! > /var/run/scheme-webserver.pid
>
> and then I hacked a quick scheme-webserver script in /etc/init.d (its
> a RedHat) and life has been more fun since.  It even starts much
> faster than Apache.
>
>
> > I realize that a cross-platform daemon/service solution is more
> > complex (especially on Windows, beentheredonethat), [...]
>
> Not that I know anything about starting a service on Windows, but
> isn't the whole concept something that falls nicely into the
> OS-dependant world?
>
> --
>           ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                   http://www.barzilay.org/                 Maze is Life!
>