06-01-2006 03:11 PM
06-01-2006 03:43 PM
06-01-2006 04:16 PM
#!/bin/sh
#
# the path to your PID file
HOSTNAME=`hostname`
MYSQL_PIDFILE=/usr/local/alfresco-1.2.1/mysql/data/$HOSTNAME.pid
TOMCAT_ROOTDIR=/usr/local/alfresco-1.2.1/tomcat
JRE_HOME=/usr/local/alfresco-1.2.1/java
#
MYSQL_START="/usr/local/alfresco-1.2.1/mysql/bin/safe_mysqld –port=3307 –sock=/usr/local/alfresco-1.2.1/mysql/data/mysql.sock –old-passwords"
MYSQL_STOP="/usr/local/alfresco-1.2.1/mysql/bin/mysqladmin –sock=/usr/local/alfresco-1.2.1/mysql/data/mysql.sock -u root -p shutdown"
MYSQL_PASSWORD=""
#
LYNX="lynx -dump"
MYSQL_STATUS=""
MYSQL_PID=""
PID=""
ERROR=0
get_pid() {
PID=""
PIDFILE=$1
# check for pidfile
if [ -f $PIDFILE ] ; then
PID=`cat $PIDFILE`
fi
}
get_mysql_pid() {
get_pid $MYSQL_PIDFILE
if [ ! $PID ]; then
return
fi
if [ $PID -gt 0 ]; then
MYSQL_PID=$PID
fi
}
is_service_running() {
PID=$1
if [ "x$PID" != "x" ] && kill -0 $PID 2>/dev/null ; then
RUNNING=1
else
RUNNING=0
fi
return $RUNNING
}
is_mysql_running() {
get_mysql_pid
is_service_running $MYSQL_PID
RUNNING=$?
if [ $RUNNING -eq 0 ]; then
MYSQL_STATUS="mysql not running"
else
MYSQL_STATUS="mysql already running"
fi
return $RUNNING
}
start_mysql() {
is_mysql_running
RUNNING=$?
if [ $RUNNING -eq 1 ]; then
echo "$0 $ARG: mysql (pid $MYSQL_PID) already running"
exit
fi
$MYSQL_START &
if [ $? -eq 0 ]; then
echo "$0 $ARG: mysql started"
sleep 2
else
echo "$0 $ARG: mysql could not be started"
ERROR=3
fi
}
stop_mysql() {
NO_EXIT_ON_ERROR=$1
is_mysql_running
RUNNING=$?
if [ $RUNNING -eq 0 ]; then
echo "$0 $ARG: $MYSQL_STATUS"
if [ "x$NO_EXIT_ON_ERROR" != "xno_exit" ]; then
exit
else
return
fi
fi
echo "MySQL will prompt you for the root password."
if [ "x$MYSQL_PASSWORD" != "x" ]; then
MYSQL_STOP="$MYSQL_STOP –password=$MYSQL_PASSWORD"
fi
$MYSQL_STOP
is_mysql_running
RUNNING=$?
if [ $RUNNING -eq 0 ]; then
echo "$0 $ARG: mysql stopped"
else
echo "$0 $ARG: mysql could not be stopped"
ERROR=4
fi
}
start_tomcat() {
export JAVA_HOME=$JRE_HOME
CURDIR="`pwd`"
cd "/usr/local/alfresco-1.2.1/bin"
./alfresco.sh start &
cd "$CURDIR"
}
stop_tomcat() {
export JAVA_HOME=$JRE_HOME
CURDIR="`pwd`"
cd "/usr/local/alfresco-1.2.1/bin"
./alfresco.sh stop &
cd "$CURDIR"
}
help() {
echo "usage: $0 help"
echo " $0 (start|stop|restart)"
echo " $0 (start|stop|restart) mysql"
echo " $0 (start|stop|restart) tomcat"
cat <<EOF
help - this screen
start - start the service(s)
stop - stop the service(s)
restart - restart or start the service(s)
EOF
}
if [ "x$3" != "x" ]; then
MYSQL_PASSWORD=$3
fi
if [ "x$1" = "xhelp" ]; then
help
elif [ "x$1" = "xstart" ]; then
if [ "x$2" = "xmysql" ]; then
start_mysql
elif [ "x$2" = "xtomcat" ]; then
start_tomcat
else
start_mysql
sleep 5
start_tomcat
fi
elif [ "x$1" = "xstop" ]; then
if [ "x$2" = "xmysql" ]; then
stop_mysql
elif [ "x$2" = "xtomcat" ]; then
stop_tomcat
else
stop_tomcat
sleep 5
stop_mysql
fi
elif [ "x$1" = "xrestart" ]; then
if [ "x$2" = "xmysql" ]; then
stop_mysql "no_exit"
start_mysql
elif [ "x$2" = "xtomcat" ]; then
stop_tomcat "no_exit"
stop_mysql "no_exit"
sleep 5
start_mysql
sleep 2
start_tomcat
fi
fi
exit $ERROR
06-01-2006 06:56 PM
#!/bin/sh
# —————————————————————————
# Start script for the OpenOffice transform service
# —————————————————————————
echo "Starting OpenOffice service…"
# Comment or uncomment the appropriate location using #
# Assumes OpenOffice is installed in /opt
<alfresco-install>/openoffice/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManage
r" -nologo -headless &
# If NeoOffice on Mac OS X
#/Applications/NeoOfficeJ.app/Contents/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceMana
ger" -nologo -headless &
The OpenOffice binary should be at this location: <alfresco-install>/openoffice/program/sofficeStarting OpenOffice service…
06-02-2006 08:37 AM
Jun 1, 2006 1:26:00 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.path: /usr/local/alfresco-1.2.1/java/lib/i386/server:/usr/local/alfresco-1.2.1/java/lib/i386:/usr/local/alfresco-1.2.1/java/../lib/i386
Jun 1, 2006 1:26:00 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 1, 2006 1:26:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1110 ms
Jun 1, 2006 1:26:00 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 1, 2006 1:26:00 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.12
Jun 1, 2006 1:26:00 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 1, 2006 1:26:01 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
Jun 1, 2006 1:26:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 1, 2006 1:26:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
Jun 1, 2006 1:26:19 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 1, 2006 1:26:19 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jun 1, 2006 1:26:19 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 19068 ms
Jun 1, 2006 1:52:18 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.path: /usr/local/alfresco-1.2.1/java/lib/i386/server:/usr/local/alfresco-1.2.1/java/lib/i386:/usr/local/alfresco-1.2.1/java/../lib/i386
Jun 1, 2006 1:52:19 PM org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:137)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:762)
at org.apache.catalina.startup.Catalina.load(Catalina.java:488)
at org.apache.catalina.startup.Catalina.load(Catalina.java:508)
06-02-2006 09:22 AM
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
06-02-2006 09:58 AM
06-02-2006 10:01 AM
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,text/css,application/excel,application/msword,application/powerpoint,application/rtf"
06-02-2006 10:52 AM
06-05-2006 05:56 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.