Arc Forumnew | comments | leaders | submitlogin
1 point by SteveMorin 5113 days ago | link | parent

Interesting I figured someone would have come up with a more advance solution


1 point by shader 5113 days ago | link

I'm not sure exactly what you mean by "advanced solution."

What were you thinking of? How would you like to see it work? I'm sure we can figure out how to make it happen.

-----

1 point by thaddeus 5113 days ago | link

A more advanced option: http://tmux.sourceforge.net/

-----

1 point by evanrmurphy 5113 days ago | link

Nah, we're all simpletons. ;)

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

-----

2 points by SteveMorin 5107 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 5106 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 5113 days ago | link

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

-----