Thank you everyone. And I apologize: I should have specified that I was
using one of those headless Cobalt Linux appliances and saved the mac/win
people some carpal tunnel wear-and-tear. I will work around the vnc specific
stuff in Bert's script and see what happens.

By the way, if people want to see the beginnings of what I'm using a Swiki
for, go to http://www.madeleinelengle.org/; you can read the materials there
or skip ahead and click on "sandbox." You can play around, even though, as I
imagine, your a bit older than our 13-year-old top target age.

...Oh, here is another question: you will notice that I had to settle for
exposing the alternative port number (8888). I tried my damnedest to
configure a reverse proxy in Apache so that it would serve the sandbox, at
least, from sandbox.madeleinlengle.org (instead of
www.madeleinelengle.org:8888), but something in the dummy-proof
configuration of the Cobalt appliance prevents the web service from
reloading properly with those changes. Has anyone successfully configured a
reverse proxy on one of these Cobalt thingies?

Thanks agin,

John

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Bert Freudenberg
Sent: Tuesday, February 12, 2002 4:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [pws] start up script


On Tue, 12 Feb 2002, John Voiklis wrote:

> Hi,
>
> I would like to start up Comswiki when my machine boots. I have tried and
> failed to write a startup script. Could someone provide a sample of one
they
> use?

#!/bin/sh
. /etc/rc.d/init.d/functions
SQUEAKDIR=$HOME/Squeak
VMDIR=$SQUEAKDIR/ServerVM
VMPARA="-notitle -display unix:1"
PWSVM=$VMDIR/squeakswiki
COMVM=$VMDIR/squeakcomanche
case "$1" in
    start)
        echo Starting VNC server
        vncserver -kill :1 >/dev/null 2>&1
        rm -rf /tmp/.X11-unix/X1
        vncserver :1 -name Squeak -geometry 800x600 -depth 8 -cc 3
        (
            unset SQUEAK_SECURE
            LD_LIBRARY_PATH=$VMDIR
            export LD_LIBRARY_PATH

            echo Starting PWS
            cd $SQUEAKDIR/Swiki
            nohup $PWSVM $VMPARA swiki.image &

            echo Starting Comanche
            cd $SQUEAKDIR/Comanche
            nohup $COMVM $VMPARA comanche.image &
        )
        ;;
    stop)
        echo -n Killing PWS
        killproc $PWSVM
        echo
        echo -n Killing Comanche
        killproc $COMVM
        echo
        vncserver -kill :1
        ;;
    restart)
        $0 stop;$0 start
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
esac
exit 0


Reply via email to