From: Bert Freudenberg Subject: Re: [pws] sys admin questions Date: Thu, 27 Jun 2002 08:54:36 -0700 On Tue, 25 Jun 2002, John Voiklis wrote: > Hi, > > A while back some kind people helped with writing a script to start my Swiki > on boot (btw I'm using one of those headless Cobalt Linux appliances). The > script works fine, but NOT ON BOOT; I seem to have missed a step. Any > Unix/Linux sys admins on the list have any ideas what I still need to do. > > Here is the script: > > #!/bin/sh > . /etc/rc.d/init.d/functions > SQUEAKDIR=/opt/ComSwiki > SWPARAM="-headless -memory 40m" > SWIKIVM=$SQUEAKDIR/skweak > case "$1" in > start) > echo Starting Swiki > cd $SQUEAKDIR/ > nohup $SWIKIVM $SWPARAM skweak.image & > ;; > stop) > echo -n Killing Swiki > killproc $SWIKIVM > echo > ;; > restart) > $0 stop;$0 start > ;; > *) > echo "Usage: $0 {start|stop|restart}" > exit 1 > esac > exit 0 > > It is saved here: /etc/rc.d/init.d You'll also have to sym-link this script into the rc[0-6].d directories. This can be easiest done if you have the chkconfig command (see the manpage). If not, just look at how the other scripts are linked. -- Bert