[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AG-TECH] Venueserver startup script for RedHat?
Thad,
Hope these help. Make a file in /etc/init.d as something like
'localstartup' (copy one of the other startup scripts and empty it out)
and then add it with chkconfig.
I call these scripts from the end of that 'localstartup' script run by
a non-root user thus:
su - agnode -c /home/agnode/bin/ag-initialize
And the ag-initialize script does some other things as well as call the
attached startVenueServer scripts.
Derek
Thad Sze wrote:
Anyone out there got a decent startup script for launching the
venueserver at boot for a RHEL machine that they don't mind sharing?
It'd save me from having to reinvent the wheel....
Thanks,
Thad
--------------------
Thaddeus Sze
Information Technology
Division of Engineering and Applied Sciences
Harvard University
--
Derek Piper - dcpiper@xxxxxxxxxxx - (812) 856 0111
IRI 323, School of Informatics
Indiana University, Bloomington, Indiana
#!/bin/sh
VSERVER=/usr/bin/VenueServer24
VSERVERDATA=$HOME/VenueServer24
VSOPTIONS='-p 8000'
LOGBASE=$HOME/agoutput
VSERVERLOG=$LOGBASE/venueserver24.log
NOTIFYEMAIL=dcpiper@xxxxxxxxxxx
cd $HOME
if [ ! -d $LOGBASE ]; then
mkdir -p $LOGBASE
fi
# Start the Venue Server
if [ ! -d $VSERVERDATA ]; then
mkdir -p $VSERVERDATA
fi
cd $VSERVERDATA
DATE=`date`
if [ "$1" = "-d" ]; then
$VSERVER $VSOPTIONS
else
$VSERVER $VSOPTIONS 1>$VSERVERLOG 2>$VSERVERLOG &
fi
echo "Started Venue server $VSERVER at $DATE" | mail -s "Venue Server - $VSERVER" $NOTIFYEMAIL
#!/bin/sh
VSERVER=/usr/bin/VenueServer
VSERVERDATA=$HOME/VenueServer
VSOPTIONS='-p 9000'
LOGBASE=$HOME/agoutput
VSERVERLOG=$LOGBASE/venueserver.log
NOTIFYEMAIL=dcpiper@xxxxxxxxxxx
cd $HOME
if [ ! -d $LOGBASE ]; then
mkdir -p $LOGBASE
fi
# Start the Venue Server
if [ ! -d $VSERVERDATA ]; then
mkdir -p $VSERVERDATA
fi
cd $VSERVERDATA
DATE=`date`
if [ "$1" = "-d" ]; then
$VSERVER $VSOPTIONS
else
$VSERVER $VSOPTIONS 1>$VSERVERLOG 2>$VSERVERLOG &
fi
echo "Started Venue server $VSERVER at $DATE" | mail -s "Venue Server - $VSERVER" $NOTIFYEMAIL