Tom Nielsen wrote:
On Tuesday 31 August 2004 09:50 am, Jason Joines wrote:
"opengroupware:~> export LD_ASSUME_KERNEL=2.4.1" Then running it manually worked great and I am able to connect via browser.
Did that and it worked.
Do I need to be opengroupware user to start it all the time? Do I need to use the startup script all the time also? Kind of a pain....but hey, it's working. It also dies on me afterwards.
Tom
I'm using this as ~opengroupware/.profile # OpenGroupware.org user profile # new files can be read/written by the opengroupware user. umask 007 #remove the comment in front of the next line if you're #on RedHat9/FC1/FC2 any RHEL3 flavour or SUSE 9.1 export LD_ASSUME_KERNEL=2.4.1 . /opt/opengroupware.org/OpenGroupware.org.sh export SASL_PATH="${GNUSTEP_USER_ROOT}/Library/Plugins/Plain.plugin/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO" export PYTHONPATH=${GNUSTEP_USER_ROOT}/Tools export PILOTPORT="net:any:14238" and this as /etc/init.d/opengroupware #! /bin/sh # # /etc/init.d/opengroupware # # and symbolic its link # # /usr/sbin/rcopengroupware # ### BEGIN INIT INFO # Provides: opengroupware # Required-Start: $network $postgresql # Required-Stop: # Default-Start: 3 5 # Default-Stop: # Description: Start the OpenGroupWare Server ### END INIT INFO # Configuration section OGO_DIR=/opt/opengroupware.org OGO_BIN=$OGO_DIR/WOApps/OpenGroupware.woa/ix86/linux-gnu/gnu-fd-nil/OpenGroupware OGO_ARGS="-WOPort 20000 -WOHttpAllowHost localhost -OGoMinimumActiveSessionCount 0" PID_FILE=/var/run/ogo.pid LOG=/var/log/ogo.log # end configuration section # Source function library. # Use the funtions provided by Red Hat or use our own if [ -f /etc/rc.d/init.d/functions ] then . /etc/rc.d/init.d/functions else function action { echo "$1" shift $@ } function success { echo -n "Success" } function failure { echo -n "Failed" } fi [ -x $OGO_BIN ] || exit 0 case "$1" in start) echo -n "Starting OpenGroupware: " pushd $OGO_DIR > /dev/null # log separator echo "----------------------------------------------------------------------"
$LOG
# run as a user 'opengroupware': if [ "`uname -s`" = "Linux" ]; then env -i su - opengroupware -c "$OGO_BIN $OGO_ARGS"
$LOG 2>&1 & elif [ "`uname -s`" = "FreeBSD" ]; then env -i su -l opengroupware -c "$OGO_BIN $OGO_ARGS" $LOG 2>&1 & fi
echo $! > $PID_FILE popd > /dev/null success "Starting OpenGroupware" echo ;; stop) echo -n "Shutting down OpenGroupware: " if test -f "$PID_FILE" ; then PID=`cat $PID_FILE` if kill $PID >> $LOG 2>&1 ; then /bin/rm $PID_FILE success "Shutting down OpenGroupware" else echo "" echo "Could not kill process $PID named in $PID_FILE. Check tail of $LOG." failure "Shutting down OpenGroupware" fi else echo "" echo "No OpenGroupware pid file found. Looked for $PID_FILE." failure "No OpenGroupware pid file found. Looked for $PID_FILE." fi echo ;; restart) $0 stop $0 start ;; *) echo "Usage: opengroupware {start|stop|restart}" exit 1 esac exit 0 Jason =================================