Arc Forumnew | comments | leaders | submitlogin
1 point by evanrmurphy 5019 days ago | link | parent

Nah, we're all simpletons. ;)

Have you used screen though? It's really quite an advanced solution itself IMO.



2 points by SteveMorin 5013 days ago | link

I just started reading up on screen is a awesome solution. I am very surprised that I haven't heard of it before. The only thing don't like about this is that I can't then start the server with a arc equivalent of mysqld_safe which will restart it if it crashes. I would want to be able to have this for a production server. Wonder if it would be possible to scrape a script together that can do that while still dropping you into the repl, and still create a pid file. Any ideas because I usually just launch things like this in the background, which is easy to do.

-----

2 points by aw 5012 days ago | link

I wasn't quite able to tell from your description what is the missing piece for you: is it starting Arc inside of screen at server boot time, or restarting Racket/Mzscheme if it crashes?

I think what you want is for server boot to run screen, which runs a shell script that starts/restarts Arc, which writes its pid out to a pidfile. Does that sound about right? Each step in that process is pretty easy.

-----

1 point by SteveMorin 5019 days ago | link

I haven't used screen to be honest. I was thinking of something more like the swank implementation for lisp

-----