Hi. I'm trying to make a script that launches the server. I need it to launch within an Ant task (Ant is sort of non-problem for me, but Lisp is
) to run it along with my unit tests. What I fail to find, is how would I tell a Lisp program to not exit (when I say script I mean specifically SBCL invoked with --script argument). Ideally, I'd be happy to find some way to:
1. launch the script (or fasl) in a background process (think server.fasl -start & #server keeps running, but the script exits)
2. same script (whit another parameter), or another script that tells the server to stop.
I tried to find a simple setup for Hunchentoot or Webdav (this would probably fit well), but didn't find anything simple / good enough to even explain the process.
Think something like this:
1. launch the script (or fasl) in a background process (think server.fasl -start & #server keeps running, but the script exits)
2. same script (whit another parameter), or another script that tells the server to stop.
I tried to find a simple setup for Hunchentoot or Webdav (this would probably fit well), but didn't find anything simple / good enough to even explain the process.
Think something like this:
<target ...>
<exec name="shell-or-lisp-script" spawn="if-you-need?">
<arg value="start-server"/>
</exec>
<junit .../><!-- a bunch of unit tests that talk to the server -->
<exec name="shell-or-lisp-script" spawn="if-you-need?">
<arg value="stop-server"/>
</exec>
</target>
Thanks!