[AG-TECH] AG 2.1.2 venue server setup

Christoph Willing chris at vislab.usyd.edu.au
Thu Feb 5 16:38:46 CST 2004


On Fri, 2004-02-06 at 08:52, Darin Oman wrote:
> Is there any documentation anywhere on installing and configuring an
> AG 2.1.2 venue server on Linux?
>  

Darin,

There's not much to do if have already installed the AG2.1.2 bundle and
have a certificate for the user who will run the server. In that case,
start the server with by running (from the command line):
	VenueServer.py

For general use, it may be easier to start the server at boot time using
a script in /etc/rc.d (example below).

Once the server is running, it is configured with the the
VenueManagement tool - either VenueManagement.py from the command line
or from the Applications->Other->Venue Manager menu item (this may
differ on your system, depending on which window manager you're using).
You can pretty much follow your nose from there; the buttons are fairly
obvious for adding/modifying rooms, which will be your most common
activity.


chris


Example /etc/rc.d/rc.agvs script to start Venue Server at boot time. It
is assumed the server is being run as the user "ag" and that this user
has a service certificate (rather than identity certificate).

#!/bin/sh
#
# agvs          This shell script takes care of starting and stopping
#               the Access Grid Venue Server
#
# description: The Access Grid Service Manager

[ -x /usr/bin/VenueServer.py ] || exit 

RETVAL=0
prog="VenueServer"
datadir="/var/run/agvs"


start() {
    # Start daemons.
    touch /var/log/agvs.log
    chown ag.users /var/log/agvs.log
    chmod 0640 /var/log/agvs.log
    if [ ! -d $datadir ]; then
        mkdir -p $datadir
        chown -R ag.users $datadir
        chmod 0640 $datadir
    fi
    echo -n $"Starting $prog: "
    su ag -c '/usr/lib/globus/bin/grid-proxy-init -hours 0'
    (cd ~ag && su ag -c /usr/bin/VenueServer.py &)
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/agvs
    return $RETVAL
}

stop() {
    # Stop daemons.
    echo -n $"Shutting down $prog: "
    killall VenueServer.py
    sleep 3
    killall -HUP VenueServer.py
    RETVAL=$?
    echo
    if [ -d $datadir ]; then
        rm -rf $datadir
    fi
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/agvs
    return $RETVAL
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status agvs
        RETVAL=$?
        ;;
    restart|reload)
        stop
        start
        RETVAL=$?
        ;;
    condrestart)
        if [ -f /var/lock/subsys/agvs ]; then
            stop
            start
            RETVAL=$?
        fi
        ;;
    *)
        echo $"Usage: $0 {start|stop|restart|condrestart|status}"
        exit 1
esac

exit $RETVAL
# End of rc.agvs script


-- 
Chris Willing                      Telephone   (61-2) 9351 3914
Sydney Vislab, F09                      Fax    (61-2) 9351 5955 
University of Sydney
NSW 2006 Australia                http://www.vislab.usyd.edu.au




More information about the ag-tech mailing list