From 048a69cfec38447c17791c72cb3b86221dedcaea Mon Sep 17 00:00:00 2001 From: maroy Date: Sat, 26 Mar 2005 19:30:01 +0000 Subject: [PATCH] added files needed by the installation process --- .../products/scheduler/bin/scheduler.sh | 99 ++++++++++++ .../products/scheduler/etc/odbc_template | 18 +++ .../products/scheduler/etc/odbcinst_template | 5 + .../scheduler/etc/scheduler.xml.template | 151 ++++++++++++++++++ 4 files changed, 273 insertions(+) create mode 100755 livesupport/products/scheduler/bin/scheduler.sh create mode 100644 livesupport/products/scheduler/etc/odbc_template create mode 100644 livesupport/products/scheduler/etc/odbcinst_template create mode 100644 livesupport/products/scheduler/etc/scheduler.xml.template diff --git a/livesupport/products/scheduler/bin/scheduler.sh b/livesupport/products/scheduler/bin/scheduler.sh new file mode 100755 index 000000000..523f22305 --- /dev/null +++ b/livesupport/products/scheduler/bin/scheduler.sh @@ -0,0 +1,99 @@ +#!/bin/sh +#-------------------------------------------------------------------------------# Copyright (c) 2004 Media Development Loan Fund +# +# This file is part of the LiveSupport project. +# http://livesupport.campware.org/ +# To report bugs, send an e-mail to bugs@campware.org +# +# LiveSupport is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# LiveSupport is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with LiveSupport; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# +# Author : $Author: maroy $ +# Version : $Revision: 1.1 $ +# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/bin/scheduler.sh,v $ +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- +# System V runlevel style invoke script for the LiveSupport Scheduler +#------------------------------------------------------------------------------- + + +#------------------------------------------------------------------------------- +# Determine directories, files +#------------------------------------------------------------------------------- +reldir=`dirname $0`/.. +basedir=`cd $reldir; pwd;` +bindir=$basedir/bin +etcdir=$basedir/etc +libdir=$basedir/lib + + +#------------------------------------------------------------------------------- +# Set up the environment +#------------------------------------------------------------------------------- +export LD_LIBRARY_PATH=$libdir:$LD_LIBRARY_PATH +scheduler_exe=$bindir/scheduler +config_file=$etcdir/scheduler.xml + +mode=$1 + + +#------------------------------------------------------------------------------- +# Do what the user asks us to do +#------------------------------------------------------------------------------- +case "$mode" in + 'start') + echo "Starting the LiveSupport scheduler..." + $scheduler_exe -c $config_file start + sleep 2 + ;; + + 'stop') + echo "Stopping the LiveSupport scheduler..." + $scheduler_exe -c $config_file stop + sleep 2 + ;; + + 'status') + echo "Checking LiveSupport scheduler status..." + $scheduler_exe -c $config_file status + ;; + + 'install') + echo "Installing LiveSupport scheduler database tables..." + $scheduler_exe -c $config_file install + ;; + + 'uninstall') + echo "Uninstalling LiveSupport scheduler database tables..." + $scheduler_exe -c $config_file uninstall + ;; + + 'kill') + echo "Killing all LiveSupport scheduler processes..." + killall scheduler + sleep 2 + killall -9 scheduler + ;; + + *) + echo "LiveSupport scheduler System V runlevel init script." + echo "" + echo "Usage:" + echo " $0 start|stop|status|install|uninstall|kill" + echo "" + +esac + diff --git a/livesupport/products/scheduler/etc/odbc_template b/livesupport/products/scheduler/etc/odbc_template new file mode 100644 index 000000000..96309c96c --- /dev/null +++ b/livesupport/products/scheduler/etc/odbc_template @@ -0,0 +1,18 @@ +[ls_database] +Description = the LiveSupport database at PostgreSQL +Driver = PostgreSQL +Trace = No +TraceFile = /tmp/sql.log +Database = ls_database +Servername = ls_dbserver +Username = +Password = +Port = 5432 +Protocol = 6.4 +ReadOnly = No +RowVersioning = No +ShowSystemTables = No +ShowOidColumn = No +FakeOidIndex = No +ConnSettings = + diff --git a/livesupport/products/scheduler/etc/odbcinst_template b/livesupport/products/scheduler/etc/odbcinst_template new file mode 100644 index 000000000..5152c10df --- /dev/null +++ b/livesupport/products/scheduler/etc/odbcinst_template @@ -0,0 +1,5 @@ +[PostgreSQL] +Description = PostgreSQL driver +Driver = /usr/lib/libodbcpsql.so +Setup = /usr/lib/libodbcpsqlS.so + diff --git a/livesupport/products/scheduler/etc/scheduler.xml.template b/livesupport/products/scheduler/etc/scheduler.xml.template new file mode 100644 index 000000000..e4082dcbe --- /dev/null +++ b/livesupport/products/scheduler/etc/scheduler.xml.template @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Title + TIT2 + dc:title + + + TPE1 + Artist + dc:creator + + + Length + TLEN + dcterms:extent + + + + TBPM + ourdcextension:bpm + + + +