Hi Morley,
I have Servoy Server running on an Xserve without problems.
To answer your last question first.
When you have Servoy Server (as service) running then opening and closing Developer on the same machine won't quit Servoy Server.
But your question suggests that you don't have Servoy Server running as a service.
Marcel Trapman posted a great tip on Servoy magazine about how to get Servoy server running on Mac OS X. But the website didn't kept the long lines intact but added breaks.
So for you (and others) I post my working files.
servoy_server.sh (in /Applications/<Servoy folder>)
- Code: Select all
#!/bin/sh
cd /Applications/Servoy
export DYLD_LIBRARY_PATH=/Applications/Servoy/sybase_db
/Applications/Servoy/sybase_db/dbsrv9 @/Applications/Servoy/sybase_db/sybase.config &
while true
do
java -Djava.awt.headless=true -classpath .:lib/commons-collections.jar:lib/commons-dbcp.jar:lib/commons-pool.jar:lib/activation.jar:lib/antlr.jar:lib/j2db.jar:lib/j2dbdev.jar:lib/compat141.jar:lib/jh.jar:lib/jndi.jar:lib/js.jar:lib/jta.jar:lib/mail.jar:lib/jug.jar:lib/jdbc2_0-stdext.jar:lib/naming-common.jar:lib/naming-resources.jar:lib/servlet.jar:lib/xerces.jar:lib/server-bootstrap.jar:lib/commons-fileupload-1.0.jar:lib/commons-logging.jar:lib/hibernate2.jar com.servoy.j2db.server.ApplicationServer "$@"
EXITCODE=$?
if [ "$EXITCODE" != 99 ]; then exit $EXITCODE; fi
done
sybase.config (in /Applications/<servoy folder>/sybase_db/
- Code: Select all
-ti 0 -x tcpip{dobroadcast=no} -ud -qs -qw -o sybase_db/sybase_log.txt
database/servoy_repository.db
database/user_data.db
database/example.db
database/log_data.db
database/crm.db
In /Library/StartupItems/ you create a folder named Servoy.
In that Servoy folder you create the following 2 files.
Owner of this folder and files is root.
The folder and the Servoy file have permission 755.
StartupParameters.plist has permission 644.
Servoy
- Code: Select all
#!/bin/sh
##
# Servoy Application Server
##
. /etc/rc.common
StartService () {
ConsoleMessage "Starting Servoy Application Server..."
cd /Applications/Servoy/
. /Applications/Servoy/servoy_server.sh&
}
StopService()
{
ConsoleMessage "In the future Stop Servoy Application Server here"
}
RestartService ()
{
ConsoleMessage "Restarting Servoy Application Server..."
StopService
StartService
}
RunService "$1"
StartupParameters.plist
- Code: Select all
{
Description = "Servoy Application Server";
Provides = ("Servoy");
Requires = ("Resolver");
Preference = "Late";
Messages =
{
start = "Starting Servoy Application Server";
stop = "Stopping Servoy Application Server";
};
}
Morley wrote:In attempting to get our solution and database into place we DID add the database in Servoy Prefs/DB Servers and we DID add it to the Sybase.config file. And we DID move ALL database files from Servoy Database directory and ALL the files from the Sybase_db directory. We also checked to make sure permissions are properly set
Why did you copy the sybase_db directory over?
Servoy installer already puts that on the server for you.
You only have to copy your database directory over.
This directory holds all Sybase databases.
Hope this helps.