Posted by
Paul DeBruicker on
Dec 01, 2010; 12:22pm
URL: https://forum.world.st/pharo-1-1-headless-server-startup-and-shutdown-tp3065524p3067156.html
On 12/01/2010 06:04 AM,
[hidden email] wrote:
> Message: 1
> Date: Tue, 30 Nov 2010 09:58:07 -0500
> From: Jon Hancock<
[hidden email]>
> Subject:
> To:
[hidden email]
> Message-ID:<
[hidden email]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I've found a few tidbits on how to start pharo headless.
> I'm using the most recent Pharo-1.1-OneClick.app which works fine for
> dev on OS X. When I try to move this to linux, I get troubles.
>
> To keep things simple, I've copied the pharo.sh script as pharo-headless.sh.
>
> Here is the script:
> --- BEGIN ---
> #!/bin/sh
>
> # path
> ROOT=`dirname $0`
> BASE="$ROOT/Contents/Linux"
>
> # execute
> exec "$BASE/squeakvm" \
> -plugins "$BASE" -mmap 100m -encoding latin1 \
> -vm-display-X11 -vm-sound-null -headless \
I think the preceding line should be
-vm-display-null -vm-sound-null
> "$ROOT/Contents/Resources/pharo.image"
>
> --- END ---
>
> On ubuntu 10.04 32-bit I get this:
> jhancock@pi1:~/Pharo-1.1-OneClick.app$ ./pharo-headless.sh
> libSM.so.6: cannot open shared object file: No such file or directory
> could not find module vm-display-X11
> Aborted
>
> On ubuntu 8.04 64-bit I get this:
> knr@us1:~/Pharo-1.1-OneClick.app$ ./pharo-headless.sh
> exec: 15: ./Contents/Linux/squeakvm: not found
make sure you have the package ia32-libs installed on the 64bit system.
> I really need to get it running on the ubuntu 8.04 64-bit system.
> Once I get past this problem, what is the best method to kill/shutdown
> pharo from outside the dev environ? I don't require to save the image,
> just safely kill it so it doesn't hold on to resources like socket
> listener, etc...
>
> thanks, Jon
>
>
>
>
>
>
>
>
> ------------------------------