pharo 1.1. headless server startup and shutdown
Posted by jhancock on Nov 30, 2010; 2:58pm
URL: https://forum.world.st/pharo-1-1-headless-server-startup-and-shutdown-tp3065524.html
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 \
"$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
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