From: jrwats
Subject: run common lisp progs in sbcl as linux daemons
Date: 
Message-ID: <f0d6fd91-3e2c-4620-9f15-72c6a9aa2342@e10g2000prf.googlegroups.com>
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

From: Volkan YAZICI
Subject: Re: run common lisp progs in sbcl as linux daemons
Date: 
Message-ID: <4bc04991-9044-46e6-899e-ab1d870ee723@v3g2000hsc.googlegroups.com>
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")
From: Spiros Bousbouras
Subject: Re: run common lisp progs in sbcl as linux daemons
Date: 
Message-ID: <f0f1c68d-872c-4673-ac32-bf9395748d0e@d21g2000prf.googlegroups.com>
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
From: Volkan YAZICI
Subject: Re: run common lisp progs in sbcl as linux daemons
Date: 
Message-ID: <3f6454f7-4dcf-4a3e-ad68-86cc94c02634@b1g2000hsg.googlegroups.com>
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.
From: Petter Gustad
Subject: Re: run common lisp progs in sbcl as linux daemons
Date: 
Message-ID: <87mypgn9h7.fsf@pangea.home.gustad.com>
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?
From: Kaz Kylheku
Subject: Re: run common lisp progs in sbcl as linux daemons
Date: 
Message-ID: <75dc9230-154c-428c-b74d-fc3552575791@i7g2000prf.googlegroups.com>
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 ...