mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-25 11:16:24 +00:00
Monotone-Parent: 39f192a2cb7f0fd986565edd10b7ac885ccfb0f4
Monotone-Revision: 539c778600d2e518b02c2bcbd94999b4d041813d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-11-13T14:25:47 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# Copyright (C) 2007-2009 Inverse inc.
|
||||
#
|
||||
# Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
# Authors: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
# Francis Lachapelle <flachapelle@inverse.ca>
|
||||
#
|
||||
# This file is free software; you can redistribute it and/or modify
|
||||
@@ -22,16 +22,8 @@
|
||||
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
# Boston, MA 02111-1307, USA.
|
||||
|
||||
# Uncomment the following line for Oracle RAC. This is where
|
||||
# should be located the tnsnames.ora.
|
||||
#export TNS_ADMIN=/home/sogo
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
PIDFILE=/var/run/sogo/sogod.pid
|
||||
else
|
||||
PIDFILE=/var/run/sogo/sogod.$1
|
||||
fi
|
||||
PIDFILE=/var/run/sogo/sogo.pid
|
||||
LOGFILE=/var/log/sogo/sogo.log
|
||||
|
||||
if [ -f /etc/GNUstep/GNUstep.conf ]; then
|
||||
. /etc/GNUstep/GNUstep.conf
|
||||
@@ -59,27 +51,6 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
woport=`defaults read sogod WOPort`
|
||||
if [ "$?" -eq 0 ]
|
||||
then
|
||||
startport=`echo $woport | awk '{print $3}' | sed -e 's/\(.*:\)//'`
|
||||
else
|
||||
startport=20000
|
||||
fi
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
port=$startport
|
||||
else
|
||||
let "port=$startport + $1 - 1"
|
||||
fi
|
||||
listen=`echo $woport | awk '{ print $3 }' | sed -e 's/\([0-9]\+\)$/'$port'/g'`
|
||||
|
||||
if [ -z "$listen" ]
|
||||
then
|
||||
listen=$port
|
||||
fi
|
||||
|
||||
# echo "SOGOD: $sogod -WOPort $listen" 2>&1
|
||||
|
||||
exec $sogod -WOPort $listen -WOLogFile /var/log/sogo/sogod.log -WOPidFile $PIDFILE
|
||||
exec $sogod -WOLogFile $LOGFILE -WOPidFile $PIDFILE
|
||||
|
||||
Reference in New Issue
Block a user