From: Riccardo Pucci
Subject: mod_lisp & cmucl
Date: 
Message-ID: <ajttog$1e6lnd$1@ID-144198.news.dfncis.de>
I tried them in my linux machine (redhat 7.0 and apache 1.13).
I just used the modlisp-cmucl.lisp file from fractal web site, everithing
went ok until i tried to run lisp interpreter in background.
When I logged out from su shell, was still ok but when I logged out from my
user shell, the lisp process seems to die...
Sure I miss something stupid, I tried

lisp -load "/home/riccardop/modlisp-cmucl.lisp" -eval
"(start-apache-listener)" &

to execute the lisp interpreter in background. Is it the right way?
Any suggestion would be appreciated :)

--
Riccardo Pucci

D.B.CAD s.r.l.
via F.lli Pellas 10
06121 Perugia (Italy)

r i c c a r d o . p u c c i @ d b c a d i t a l y . c o m

From: Marc Spitzer
Subject: Re: mod_lisp & cmucl
Date: 
Message-ID: <slrnam5205.be8.marc@oscar.eng.cv.net>
In article <···············@ID-144198.news.dfncis.de>, Riccardo Pucci wrote:
> I tried them in my linux machine (redhat 7.0 and apache 1.13).
> I just used the modlisp-cmucl.lisp file from fractal web site, everithing
> went ok until i tried to run lisp interpreter in background.
> When I logged out from su shell, was still ok but when I logged out from my
> user shell, the lisp process seems to die...
> Sure I miss something stupid, I tried
> 
> lisp -load "/home/riccardop/modlisp-cmucl.lisp" -eval
> "(start-apache-listener)" &
> 
> to execute the lisp interpreter in background. Is it the right way?
> Any suggestion would be appreciated :)

Yes you backgrounded it right, but when you exit a shell all child
processes get sent a HUP signal(SIGHUP) because you hung up.  And 
well behaved processes will exit.  look at the nohup command for 
keeping lisp alive after you exit the shell, 'man nohup'

marc

> 
> --
> Riccardo Pucci
> 
> D.B.CAD s.r.l.
> via F.lli Pellas 10
> 06121 Perugia (Italy)
> 
> r i c c a r d o . p u c c i @ d b c a d i t a l y . c o m
> 
> 
> 
From: Riccardo Pucci
Subject: Re: mod_lisp & cmucl
Date: 
Message-ID: <ajvsg5$1elvpp$1@ID-144198.news.dfncis.de>
>
> Yes you backgrounded it right, but when you exit a shell all child
> processes get sent a HUP signal(SIGHUP) because you hung up.  And
> well behaved processes will exit.  look at the nohup command for
> keeping lisp alive after you exit the shell, 'man nohup'
>
> marc
>
Thank you Marc for your help (I start to understand something...)
reading the content of nohup.out file it seems that when I exit the shell,
the lisp process receive an EOF every time it try to read from its standard
input. After 10 EOF it stops itself...
Maybe there is some options in executing cmucl to avoid this, but I didn't
see it.
Or maybe is not possible at all running that lisp as a demon....
Someone could say me if I have to change my way? My need is to interpret
some lisp code im my web application. Mod_lisp is perfect from my needs but
how can I deploy my application if I have to let a shell open on the
server?!
thanks,

Riccardo

here the content of nohup.out

------
* Help! 12 nested errors.  KERNEL:*MAXIMUM-ERROR-DEPTH* exceeded.

Debug  (type H for help)

(COMMON-LISP::DO-OUTPUT #<Stream for the Terminal> #.(SYSTEM:INT-SAP
#x402DC000)
Source:
*
Received EOF.
*
Received EOF.
*
Received EOF.
*
Received EOF.
*
Received EOF.
*
Received EOF.
*
Received EOF.
*
Received EOF.
*
Received EOF.
*
Received more than 10 EOFs; Aborting.
From: Marc Spitzer
Subject: Re: mod_lisp & cmucl
Date: 
Message-ID: <slrnam722f.ehm.marc@oscar.eng.cv.net>
In article <···············@ID-144198.news.dfncis.de>, Riccardo Pucci wrote:
> 
>>
>> Yes you backgrounded it right, but when you exit a shell all child
>> processes get sent a HUP signal(SIGHUP) because you hung up.  And
>> well behaved processes will exit.  look at the nohup command for
>> keeping lisp alive after you exit the shell, 'man nohup'
>>
>> marc
>>
> Thank you Marc for your help (I start to understand something...)
> reading the content of nohup.out file it seems that when I exit the shell,
> the lisp process receive an EOF every time it try to read from its standard
> input. After 10 EOF it stops itself...
> Maybe there is some options in executing cmucl to avoid this, but I didn't
> see it.
> Or maybe is not possible at all running that lisp as a demon....
> Someone could say me if I have to change my way? My need is to interpret
> some lisp code im my web application. Mod_lisp is perfect from my needs but
> how can I deploy my application if I have to let a shell open on the
> server?!
> thanks,
> 
> Riccardo

Not sure but I am sure someone can help you here, look at IMHO,
it is a web applacation framework so it might have some docs.

marc
From: Riccardo Pucci
Subject: Re: mod_lisp & cmucl
Date: 
Message-ID: <ak0idv$1ekc4r$1@ID-144198.news.dfncis.de>
> Thank you Marc for your help (I start to understand something...)
> reading the content of nohup.out file it seems that when I exit the shell,
> the lisp process receive an EOF every time it try to read from its
standard
> input. After 10 EOF it stops itself...
> Maybe there is some options in executing cmucl to avoid this, but I didn't
> see it.
> Or maybe is not possible at all running that lisp as a demon....
> Someone could say me if I have to change my way? My need is to interpret
> some lisp code im my web application. Mod_lisp is perfect from my needs
but
> how can I deploy my application if I have to let a shell open on the
> server?!
> thanks,
>

well... at the end I found a workaround that could be enough for the moment.
I have just redirected the program input towards a serial device that I
don't use. I guess that the read-eval-print loop of cmucl is happy and
everything works.
If someone knows the right solution, please let me know (to make me happy
too).

Riccardo
From: Marc Battyani
Subject: Re: mod_lisp & cmucl
Date: 
Message-ID: <B6D1DA49B3180CA9.363FB38090F04595.C31566FC8EEE10E6@lp.airnews.net>
"Riccardo Pucci" <··············@dbcaditaly.com> wrote

> > Or maybe is not possible at all running that lisp as a demon....
> > Someone could say me if I have to change my way? My need is to interpret
> > some lisp code im my web application. Mod_lisp is perfect from my needs
> but
> > how can I deploy my application if I have to let a shell open on the
> > server?!
> > thanks,
> >
>
> well... at the end I found a workaround that could be enough for the
moment.
> I have just redirected the program input towards a serial device that I
> don't use. I guess that the read-eval-print loop of cmucl is happy and
> everything works.
> If someone knows the right solution, please let me know (to make me happy
> too).

Have you looked at detachtty ?
http://ww.telent.net/cliki/detachtty

You can use it to connect (and disconnect) to your Lisp process.

Marc
From: Riccardo Pucci
Subject: Re: mod_lisp & cmucl
Date: 
Message-ID: <ak28ic$1ebqf3$1@ID-144198.news.dfncis.de>
">
> Have you looked at detachtty ?
> http://ww.telent.net/cliki/detachtty
>
> You can use it to connect (and disconnect) to your Lisp process.
>
> Marc
>
thanks!