comparison scripts/server-ctl @ 3595:311ad623e2d1

use server configuration file [SF#1443805]
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Thu, 09 Mar 2006 06:13:01 +0000
parents adc076b825a1
children
comparison
equal deleted inserted replaced
3594:b5b6a6f7743a 3595:311ad623e2d1
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # 3 #
4 # Configuration 4 # Configuration
5 # 5 #
6 PORT=8080 6 CONFFILE="/var/roundup/server-config.ini"
7 PIDFILE="/usr/local/roundup/var/roundup-server.pid"
8 LOGFILE="/usr/local/roundup/var/roundup-server.log"
9 OTHERARGS=""
10 TRACKERS="cg=/usr/local/roundup/trackers/cg"
11 7
12 SERVER="/usr/local/bin/roundup-server -l ${LOGFILE} -d ${PIDFILE} -p ${PORT} ${OTHERARGS} ${TRACKERS}" 8 # this will end up with extra space, but it should be ignored in the script
9 PIDFILE=`grep '^pidfile' ${CONFFILE} | awk -F = '{print $2}' `
10 SERVER="/usr/local/bin/roundup-server -C ${CONFFILE}"
13 ERROR=0 11 ERROR=0
14 ARGV="$@" 12 ARGV="$@"
15 if [ "x$ARGV" = "x" ] ; then 13 if [ "x$ARGV" = "x" ] ; then
16 ARGS="help" 14 ARGS="help"
15 fi
16
17 if [ -z "${PIDFILE}" ] ; then
18 echo "pidfile option must be set in configuration file"
19 exit 1
17 fi 20 fi
18 21
19 for ARG in $@ $ARGS 22 for ARG in $@ $ARGS
20 do 23 do
21 # check for pidfile 24 # check for pidfile

Roundup Issue Tracker: http://roundup-tracker.org/