launchd headless on Mac OS X

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

launchd headless on Mac OS X

Aaron Rosenzweig-2
Hello Everyone,

I want to run either a Squeak or Pharo VM as a "service" in Mac OS X.  
That means a few things:

* headless operation
* automatically loads when the OS boots
* safely quits when the OS shuts down
* preferably controlled by launchd (launchctl)

I'm sorry if some of us are seeing "double" as I started posting  
first on the Pier list. There was some discussion there that has led  
me to start experimenting with VMMaker to try and solve my problem  
but while I'm doing that, I thought I'd post here. This really  
shouldn't be so hard. I see so many screencasts for Seaside done on a  
Mac and the one-click installers work so well on a Mac. Surely  
someone has tackled this issue before.

The one-click installers work pretty good. They even launch headless  
if you start them from the command line with the "-headless" option  
but only from a terminal window. You can't start them headless from  
launchd because it seems they are Carbon apps which require some  
minimal communication with the window server during startup. Sounds  
like a contradicted myself but it's true. If you have a login  
session, fire up terminal, then run headless that works. If you try  
to use launchd you get an error like this:

-headless: kCGErrorRangeCheck : Window Server communications from  
outside of session allowed for root and console user only

So, I'm about to try the Pier one-click installer and use VMMaker to  
produce a "unix-only" source tree that I compile that does not rely  
on Carbon to see what will happen.

Any help appreciated :-)
Thanks in advance,
-- Aaron
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: launchd headless on Mac OS X

Colin Putney

On 2-Aug-09, at 5:52 AM, Aaron Rosenzweig wrote:
> So, I'm about to try the Pier one-click installer and use VMMaker to  
> produce a "unix-only" source tree that I compile that does not rely  
> on Carbon to see what will happen.

No need to compile yourself; try the unix vm here: http://www.squeakvm.org/unix/ 
.

Launch with -vm-display-null instead of headless.

Colin
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: launchd headless on Mac OS X

Randal L. Schwartz
>>>>> "Colin" == Colin Putney <[hidden email]> writes:

Colin> No need to compile yourself; try the unix vm here:
Colin> http://www.squeakvm.org/unix/ .

Colin> Launch with -vm-display-null instead of headless.

Is there a version of this with the closure upgrades yet?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: launchd headless on Mac OS X

David T. Lewis
On Sun, Aug 02, 2009 at 09:04:55AM -0700, Randal L. Schwartz wrote:
> >>>>> "Colin" == Colin Putney <[hidden email]> writes:
>
> Colin> No need to compile yourself; try the unix vm here:
> Colin> http://www.squeakvm.org/unix/ .
>
> Colin> Launch with -vm-display-null instead of headless.
>
> Is there a version of this with the closure upgrades yet?

Yes, Ian's latest Unix VM build (3.10-6) on http://www.squeakvm.org/unix/
includes closure support.

Dave

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: launchd headless on Mac OS X

Randal L. Schwartz
>>>>> "David" == David T Lewis <[hidden email]> writes:

David> Yes, Ian's latest Unix VM build (3.10-6) on
David> http://www.squeakvm.org/unix/ includes closure support.

Wonderful!  Sorry for needing to ask... I've been distracted with
$dayjobnotsmalltalk for a bit.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside