Switching Sybase off on Application Closure

Discuss the Offline version of Servoy that allows you to run Servoy applications on and offline by using synchronization technology like Mobilink and SQL Remote.

Switching Sybase off on Application Closure

Postby dpearce » Mon Jun 23, 2008 11:27 pm

Does anyone know of a mechanism of making sure the sybase database server shuts down when developer shuts down.

I want to have some users operate two separate solutions offline, but the repository and databases continue to run on shut down of one version of developer offline.

Is there anything in the startup or setup files or from developer that can tell ianywhere to close on closure of Servoy? its just quite confusing for the user to have to remember to go to the sybase icon and close it before starting up the other version of developer offline.

Thanks

David
dpearce
 
Posts: 469
Joined: Sun Dec 03, 2006 11:53 am

Postby IT2Be » Mon Jun 23, 2008 11:42 pm

Depends on the platform but I guess you could create a shell script or batch file that starts Servoy and closes the database connection once the Servoy process closed.
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4763
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby rgansevles » Tue Jun 24, 2008 9:21 am

You can configure sybase ianywhere to stop when the last connection closes.
Simply add the following option to the first line of your sybase.config (in sybase_db):
-ga

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1838
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL


Return to Servoy Offline Client

Who is online

Users browsing this forum: No registered users and 1 guest