I need to be able to run a Pharo VM+image as a service. I saw that in the Windows VM there are such flags. But I do not know how to make that work (or if it still works). Anyone knowing? Phil
To implement a 100% native service the executable must support certain "functions". Which I don't think Pharo VM does. However you could use srvany.exe to run any executable file as a service (http://support.microsoft.com/kb/137890). Regards! Esteban A. Maringolo 2014-03-17 14:58 GMT-03:00 phil@highoctane.be <phil@highoctane.be>:
I need to be able to run a Pharo VM+image as a service.
I saw that in the Windows VM there are such flags.
But I do not know how to make that work (or if it still works).
Anyone knowing?
Phil
The Squeak VM had such a feature and it was/is widely used. For instance with Squeak it was/is easily able to install a Swiki as an NT Service and just run. There is a command line option -service: "serviceName" as you can see here: http://wiki.squeak.org/squeak/105 Pharo VM should have this too - I guess from Phillips post the code is still there. It registers the VM on the SCM (Service control manager) of Windows. Easily service registration would be really useful if provided out of the box especially for people who want to write web applications and deploy to Windows servers as one can run headless, control the service easily from the services panel or manage even clusters. Maybe it is broken, maybe related to the also broken headless support in Windows, also the stdio support of Pharo was never really finished (therefore we have a file stdout on Windows which is far from optimal) <rant> Even if it is not the best operating system: in IT reality Windows is still widely used as business platform. Currently Pharo does not really honor this these days - but should to get more business opportunities if it will (hopefully) provide better Window support in the future. </rant> Bye T.
Gesendet: Montag, 17. März 2014 um 19:12 Uhr Von: "Esteban A. Maringolo" <emaringolo@gmail.com> An: "Pharo Development List" <pharo-dev@lists.pharo.org> Betreff: Re: [Pharo-dev] Pharo as a NT service
To implement a 100% native service the executable must support certain "functions". Which I don't think Pharo VM does.
However you could use srvany.exe to run any executable file as a service (http://support.microsoft.com/kb/137890).
Regards! Esteban A. Maringolo
2014-03-17 14:58 GMT-03:00 phil@highoctane.be <phil@highoctane.be>:
I need to be able to run a Pharo VM+image as a service.
I saw that in the Windows VM there are such flags.
But I do not know how to make that work (or if it still works).
Anyone knowing?
Phil
participants (3)
-
Esteban A. Maringolo -
phil@highoctane.be -
Torsten Bergmann