Hi all,
so I have this cool little chess web app (hunchentoot package) that I
need to be run (preferably in sbcl) that I'd like to make a linux
daemon, so it can just run in the background when I say so. Anyways,
I was wondering if anyone knew a clever or easy way of doing this?
Thanks!
John Watson
On Mar 1, 1:17 am, jrwats <······@gmail.com> wrote:
> so I have this cool little chess web app (hunchentoot package) that I
> need to be run (preferably in sbcl) that I'd like to make a linux
> daemon, so it can just run in the background when I say so. Anyways,
> I was wondering if anyone knew a clever or easy way of doing this?
http://aliw.ce.itu.edu.tr/page/Documents#Daemonize_ALIW
Cheers.
From: Edi Weitz
Subject: Re: run common lisp progs in sbcl as linux daemons
Date:
Message-ID: <u4pbrwdqh.fsf@agharta.de>
On Fri, 29 Feb 2008 15:17:52 -0800 (PST), jrwats <······@gmail.com> wrote:
> so I have this cool little chess web app (hunchentoot package) that
> I need to be run (preferably in sbcl) that I'd like to make a linux
> daemon, so it can just run in the background when I say so.
> Anyways, I was wondering if anyone knew a clever or easy way of
> doing this?
http://boinkor.net/archives/2006/02/starting_daemonized_lisp_image_1.html
Edi.
--
European Common Lisp Meeting, Amsterdam, April 19/20, 2008
http://weitz.de/eclm2008/
Real email: (replace (subseq ·········@agharta.de" 5) "edi")
On 29 Feb, 23:17, jrwats <······@gmail.com> wrote:
> Hi all,
>
> so I have this cool little chess web app (hunchentoot package) that I
> need to be run (preferably in sbcl) that I'd like to make a linux
> daemon, so it can just run in the background when I say so. Anyways,
> I was wondering if anyone knew a clever or easy way of doing this?
Why is it more complicated doing it in
CL than it is doing it in C as described
at http://linux.die.net/man/4/tty ? Is it
because CL doesn't have ioctl() ?
From: Jens Teich
Subject: Re: run common lisp progs in sbcl as linux daemons
Date:
Message-ID: <uve468v7q.fsf@jensteich.de>
jrwats <······@gmail.com> writes:
> Hi all,
>
> so I have this cool little chess web app (hunchentoot package) that I
> need to be run (preferably in sbcl) that I'd like to make a linux
> daemon, so it can just run in the background when I say so. Anyways,
> I was wondering if anyone knew a clever or easy way of doing this?
Use screen.
Start SBCL with screen -S lisp sbcl
Disconnect from screen via C-a C-d.
Restart screen with screen -r lisp.
You can connect to your running sbcl as described in
http://www.cliki.net/SLIME-HOWTO.
Jens
--
http://jensteich.de
On Mar 1, 3:50 pm, Jens Teich <········@jensteich.de> wrote:
> Use screen. ...
That's what swank-daemon[1] does. See my post above.
[1] http://www.cliki.net/swank-daemon
Regards.
Jens Teich <········@jensteich.de> writes:
> Start SBCL with screen -S lisp sbcl
>
> Disconnect from screen via C-a C-d.
I do this from a cron job which is started whenever the machine is
being booted:
screen -D -m -S aserve /usr/bin/lisp -eval "(asdf:operate 'asdf:load-op :web)" -eval "(mp:make-process #'web:start-web-server)" -eval '(mp::startup-idle-and-top-level-loops)'
This is for cmucl, but the principle is the same.
Petter
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
On Mar 1, 4:50 am, Jens Teich <········@jensteich.de> wrote:
> jrwats <······@gmail.com> writes:
> > Hi all,
>
> > so I have this cool little chess web app (hunchentoot package) that I
> > need to be run (preferably in sbcl) that I'd like to make a linux
> > daemon, so it can just run in the background when I say so. Anyways,
> > I was wondering if anyone knew a clever or easy way of doing this?
>
> Use screen.
>
> Start SBCL with screen -S lisp sbcl
>
> Disconnect from screen via C-a C-d.
I would be profoundly surprised if screen did not have an option for
starting in a detached state to specified program in its internal tty
session.
Let's see, man page time ... aha!
-d -m Start "screen" in a detached mode ...