on 03-13-2015 6:22 AM
Hello, all
We have a situation where some of our smaller clients need to sync their data using Mobilink.
The mobilink service is automatically started when the machine starts. So does the DB service, whos data is being synced.
The problem is that the Mobilink client service starts before the DB service is up. So, it cannot connect to the DB and stops.
Is there a simple way to tell the Mobilnk client to start later or to wait and not shutdown if the db server is not found?
Obviously, we could write a code in the DB event, which can run a batch file, which restarts the service if the subscriptions are inactive, but I was hoping for something simple in the service configuration.
Anyone had this problem before?
Arcady,
if these are Windows OS services, you can set a dependency on the Mobilink client service to only start once the DB service has started.
See the dbsvc.exe -rs switch in this link
or you can add it in the Service properties in Sybase Central.
Thanks
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arcady,
You can potentially run a batch file when the service stops, and have that batch file restart other services. The trick is getting the batch file to run invisibly in the background when the service restarts to avoid the Interactive Services Detection issue.
Here's how I got a dbmlsync service to restart automatically when the remote database server process is killed:
net stop "SQL Anywhere - dbmlsync_svc"
net stop "SQL Anywhere - dbsrv16_svc"
net start "SQL Anywhere - dbsrv16_svc"
net start "SQL Anywhere - dbmlsync_svc"
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
Hope that helps,
Jeff Albion
SAP Active Global Support
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.