[Box-Admins] source.squeak.org startup issue resolved?

David T. Lewis lewis at mail.msen.com
Sat Nov 16 18:00:17 UTC 2013


On Sat, Nov 16, 2013 at 11:09:10AM -0600, Ken Causey wrote:
> In preparation for our chat later today regarding SqueakSource issues I 
> should note that late yesterday I seem to have stumbled onto a (I say 
> 'A') solution for the issue we have had with source.squeak.org where 
> supervise (daemontools) was not able to start, or at least keep running, 
> the source.squeak.org instance.
> 
> I 'fixed' it by modifying the run script so that it refers directly to 
> the VM executable (under /usr/local/lib/) rather than use the shell 
> script in /usr/local/bin/.  I don't understand why this fixed it, I 
> don't understand why it ever broke.  In fact I'm pretty sure I tried 
> this before to no effect.
> 
> Confused,

Hi Ken,

Can you please post the run script that you are using for source.squeak.org?
Here is the /home/ssdotcom/run script that I came up with for squeaksource.com
running on box3. This script execs the /usr/local/bin/squeak script which in
turn execs the squeakvm executable. I confirmed that the pid of the squeakvm
is the same as the pid of the run script when it is started, and also that
the squeakvm is being run under the ssdotcom user ID. I am a newbie at supervise
but this seems to be working fine as nearly as I can tell.

--- /home/ssdotcom/run ---
#!/bin/sh
# Thu Nov 14 18:23:37 CET 2013
# run script for /usr/bin/supervise

exec 2>&1

USER=ssdotcom
SSHOME=/home/ssdotcom/SqueakSource
IMAGE=squeaksource.3.image

VM=/usr/local/bin/squeak
VMARGS='-vm-display-null'

echo starting $0 in pid $$

echo cd $SSHOME
cd $SSHOME

echo exec setuidgid ${USER} ${VM} ${VMARGS} ${SSHOME}/${IMAGE}
exec setuidgid ${USER} ${VM} ${VMARGS} ${SSHOME}/${IMAGE}

--- end of /home/ssdotcom/run ---

I also set up logging with a /home/ssdotcom/log/run script as follows. This
also seems to be working as expected.

--- /home/ssdotcom/log/run ---
#!/bin/sh
USER=ssdotcom
exec setuidgid ${USER} multilog t ./main

--- end of /home/ssdotcom/log/run ---

Dave



More information about the Box-Admins mailing list