Start Sybase on Ubuntu

Hi

I am trying to start and sybase db on a headless Ubuntu install. The db appears to load, but stalls here:

Database server started at Sat Mar 27 2010 08:11
Trying to start SharedMemory link …
SharedMemory link started successfully
Trying to start TCPIP link …

the following is the response to ps -a

ubuntu@ubuntu:~/servoy/servoy/application_server$ ps -a
PID TTY TIME CMD
3149 pts/1 00:00:00 dbsrv11
3168 pts/1 00:00:00 ps

[1]+ Stopped sybase_db/dbsrv11 @sybase_db/sybase.config

Which as far as I can see means that sybase_db has stopped again

Any ideas would be very gratefully received OR a walk through of how a headless Ubuntu install should be achieved. Needless to say this does work on the Ubuntu GUI client

Cheers

Having tried the following from the application_servoy directory

export LD_LIBRARY_PATH=sybase_db
sybase_db/dbsrv11 @sybase_db/sybase.config

I get this in the running applications list (ie ps -A)

3129 ? 00:00:00 sshd
3130 pts/1 00:00:00 bash
3149 pts/1 00:00:00 dbsrv11
3193 pts/1 00:00:00 servoy_server.s
3194 pts/1 00:00:02 java
3203 ? 00:00:00 sshd
3257 ? 00:00:00 sshd
3258 pts/2 00:00:00 bash
3276 pts/2 00:00:00 ps
ubuntu@ubuntu:~$

This seems to imply that the dbsrv11 and servoy_server.s are running - it is therefore a bit strange that this is not actually working on the server and appears that somthing is either missing or blocked. Ports 8080 and 1099 are both open - is there any need to open any others to enable Servoy server or Sybase to work ?

Thanks in advance

OK this is working BUT there is a huge issue. I have started the database as follows

cd to the application_server directory on the headless server

entered:
export LD_LIBRARY_PATH=sybase_db
sybase_db/dbsrv11 @sybase_db/sybase.config

Tested to see its working with ps -A which shows dbsrv11 as an active application

HOWEVER if I close the remote terminal session on my Mac the database stops - IF I add a trailing & the database wont start shoing the message

Trying to start TCPIP link …

SO is there a way to start the database remotely and close the terminal ie in a similar way to

./servoy_server.sh &

Many thanks
Gordon

Gordon,

Try adding option -ud to the first line in the sybase_db/sybase.config file.
It tells sybase to start as a daemon process in the background.

Rob

rgansevles:
Try adding option -ud to the first line in the sybase_db/sybase.config file.
It tells sybase to start as a daemon process in the background.

Hi Rob

Thanks for this is worked a treat. One slight issue, may be the same or a similar solution. The database works with this how do you do the same with Servoy IF I type

./servoy_server.sh &

on the mac it runs as a demon if I ssh to linux and do the same it relies on my Mac based terminal session to function ie as soon as I close the mac it closes down on the Linux instance - excuse my ignorance on this sort of stuff but is there a similar switch ?

Best
Gordon

Try this:
create a file startServoy, containing
#!/bin/bash
cd /home/ubuntu/servoy/servoy/application_server
nohup ./servoy_server.sh &

The ‘nohup’ has the effect of ‘detaching’ the running script from your shell session, so it will not be terminated when your shell session terminates.

create a file startServoy, containing
#!/bin/bash
cd /home/ubuntu/servoy/servoy/application_server
nohup ./servoy_server.sh &

Sorry, forgot to add:
then
chmod +x startServoy
./startServoy