#!/bin/sh

##############################################################################
# This script starts tkrat. Postilion requires that a number of variables are
# set when it starts so this script sets them. They are:
#    LIBDIR	 - The location of the tcl and exec files
#    EXEC	 - the name of the exec-file (relative to LIBDIR)
#    COMPRESS	 - The name of the compress program
#    CSUFFIX	 - Suffix of compressed files
#    CONFIG_FILE - Name of the global config file
#    PGP	 - Name of pgp program or empty string if none
#    HOST        - The hostname (unqualified)
#    RATCMD      - The commandline used to start the program 
##############################################################################

LIBDIR=/usr/local/lib/postilionlib
EXEC=postilion.exec
COMPRESS=/usr/bin/gzip
CSUFFIX=gz
CONFIG_DIR=/usr/local/lib/postilion
PGP=/usr/local/bin/pgp
HOST=`hostname`
RATCMD="$0 $*"

export LIBDIR EXEC COMPRESS CSUFFIX CONFIG_DIR PGP HOST RATCMD

exec ${LIBDIR}/${EXEC} $*
