Bill Schwab | 10 Oct 01:34
Favicon

Squeak/Pharo as service on Windows

Hello all,

I am trying to run a Pharo+Seaside image as a service on XP and
ultimately win2k3, and just got it going on xp at least using the
appraoch documented on the Wiki:

  http://wiki.squeak.org/squeak/105

I will try it on 2k3 either tonight or tomorrow.

Recommendations point toward using svrany, but I cannot get that to
work.  Windows gives me a message along the lines of "the service
started and then stopped" and further says that some services stop if
they have nothing to do.  Any ideas what might be going on, how I might
debug it, etc.?  If you strongly disagree with the recommendation to use
svrany, please say so.  However, I am still curious about what might be
going wrong and how to find it.

Bill

Wilhelm K. Schwab, Ph.D.
University of Florida
Department of Anesthesiology
PO Box 100254
Gainesville, FL 32610-0254

Email: bschwab <at> anest.ufl.edu
Tel: (352) 273-6785
FAX: (352) 392-7029

(Continue reading)

Bill Schwab | 10 Oct 01:47
Favicon

Re: Squeak/Pharo as service on Windows

I moved the image to the win2k3 machine and had similar results: the
wiki-style service runs.  However, the Seaside app works when the image
is run on the desktop, but not when the app is running as the service. 
Is there something else I need to do?  The Kom service is running.

Bill

Wilhelm K. Schwab, Ph.D.
University of Florida
Department of Anesthesiology
PO Box 100254
Gainesville, FL 32610-0254

Email: bschwab <at> anest.ufl.edu
Tel: (352) 273-6785
FAX: (352) 392-7029

Andreas Raab | 10 Oct 02:10

Re: Squeak/Pharo as service on Windows

Bill Schwab wrote:
> I am trying to run a Pharo+Seaside image as a service on XP and
> ultimately win2k3, and just got it going on xp at least using the
> appraoch documented on the Wiki:
> 
>   http://wiki.squeak.org/squeak/105
> 
> I will try it on 2k3 either tonight or tomorrow.

Be advised that much of this hasn't been exercised in years (I needed it 
at one point but few people have used it later).

> Recommendations point toward using svrany, but I cannot get that to
> work.  Windows gives me a message along the lines of "the service
> started and then stopped" and further says that some services stop if
> they have nothing to do.  Any ideas what might be going on, how I might
> debug it, etc.?  If you strongly disagree with the recommendation to use
> svrany, please say so.  However, I am still curious about what might be
> going wrong and how to find it.

I don't know svrany so you'll have to ask someone more knowledgeable. 
However, I can give you some general advice: Most importantly, try the 
*EXACT* command line you are using from an obscure location and see if 
that works as you expect it. You might be relying on some implicit 
assumption that do not hold true when running as a service. For example, 
if you are making assumptions about the startup directory either by 
wanting Squeak to find an image implicitly or by using a relative path 
you could be badly off. Also, access to the directory might be an issue 
(I don't know if srvany allows you to specify which user to run as). 
Lastly, you should try to generate a log file (using -log:) and check 
(Continue reading)

Bill Schwab | 10 Oct 05:50
Favicon

Re: Squeak/Pharo as service on Windows

Andreas,

Thanks, that gives me some things to check.

Bill

=====================================
Andreas Raab <andreas.raab@...>andreas.raab@... 

Bill Schwab wrote:
> I am trying to run a Pharo+Seaside image as a service on XP and
> ultimately win2k3, and just got it going on xp at least using the
> appraoch documented on the Wiki:
>
> http://wiki.squeak.org/squeak/105
>
> I will try it on 2k3 either tonight or tomorrow.

Be advised that much of this hasn't been exercised in years (I needed it
at one point but few people have used it later).

> Recommendations point toward using svrany, but I cannot get that to
> work. Windows gives me a message along the lines of "the service
> started and then stopped" and further says that some services stop if
> they have nothing to do. Any ideas what might be going on, how I might
> debug it, etc.? If you strongly disagree with the recommendation to
use
> svrany, please say so. However, I am still curious about what might be
> going wrong and how to find it.

(Continue reading)

Simon Kirk | 10 Oct 11:49

Re: Re: Squeak/Pharo as service on Windows

Following the steps in this post worked for me: http://onsmalltalk.com/programming/smalltalk/running-squeak-as-a-service/

Using the RFB package means the image is still usable.

The resource kit (which is the thing that contains srvany) talked about in the post is quite tricky to track down. In the end this one was the right download for win2k3 (Ramin's post talks about the Windows NT resource kit, which is significantly out of date), I found: 


HTH.
Simon

On 10 Oct 2008, at 04:52, Bill Schwab wrote:

Andreas,

Thanks, that gives me some things to check.

Bill



=====================================
Andreas Raab <andreas.raab <at> ...>andreas.raab <at> ...

Bill Schwab wrote:
I am trying to run a Pharo+Seaside image as a service on XP and
ultimately win2k3, and just got it going on xp at least using the
appraoch documented on the Wiki:

http://wiki.squeak.org/squeak/105

I will try it on 2k3 either tonight or tomorrow.

Be advised that much of this hasn't been exercised in years (I needed it
at one point but few people have used it later).

Recommendations point toward using svrany, but I cannot get that to
work. Windows gives me a message along the lines of "the service
started and then stopped" and further says that some services stop if
they have nothing to do. Any ideas what might be going on, how I might
debug it, etc.? If you strongly disagree with the recommendation to
use
svrany, please say so. However, I am still curious about what might be
going wrong and how to find it.

I don't know svrany so you'll have to ask someone more knowledgeable.
However, I can give you some general advice: Most importantly, try the
*EXACT* command line you are using from an obscure location and see if
that works as you expect it. You might be relying on some implicit
assumption that do not hold true when running as a service. For example,
if you are making assumptions about the startup directory either by
wanting Squeak to find an image implicitly or by using a relative path
you could be badly off. Also, access to the directory might be an issue
(I don't know if srvany allows you to specify which user to run as).
Lastly, you should try to generate a log file (using -log:) and check
that or the event viewer to see if srvany has anything to say about
startup.

Hope this helps,
- Andreas


Wilhelm K. Schwab, Ph.D.
University of Florida
Department of Anesthesiology
PO Box 100254
Gainesville, FL 32610-0254

Email: bschwab <at> anest.ufl.edu
Tel: (352) 273-6785
FAX: (352) 392-7029





*******************************************************************************************************************************************

This email is from Pinesoft Limited. Its contents are confidential to the intended recipient(s) at the email address(es) to which it has been addressed. It may not be disclosed to or used by anyone other than the addressee(s), nor may it be copied in anyway. If received in error, please contact the sender, then delete it from your system. Although this email and attachments are believed to be free of virus, or any other defect which might affect any computer or IT system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by Pinesoft for any loss or damage arising in any way from receipt or use thereof.

*******************************************************************************************************************************************

 

Pinesoft Limited are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA

 



Gmane