Pivotal Knowledge Base

Follow

How To Start SQLFire Automatically When Windows Server On Boot?

APPLIES TO:
SQLFire 1.0.x to 1.1.x


PURPOSE:
This document contains a way for start SQLFire server automatically when windows server on boot since SQLFire doesn't provide a tool to register SQLFire server as a windows service.


Solution:
Step1:
Create a bat script with -J-Xrs option to allow SQLFire to run in background.

For example:
start /b cmd /c C:\SQLFire\vFabric_SQLFire_103\bin\sqlf locator start -dir=C:\SQLFire\vFabric_SQLFire_103\locator -peer-discovery-address=locatorserver1.sample.com -peer-discovery-port=10334 -locators=locatorserver1.sample.com:10334 -client-bind-address=locatorserver1.sample.com -client-port=1527 -conserve-sockets=false -distributed-system-id=1 -remote-locators=remotelocatorserver1.sample.com[10334] -J-Xrs

 

Step2:
Create a windows task to run SQLFire when windows server on boot.
Note:
Please remember to select [run whether user is logged on or not] in security option of windows server task schedule.

You can refer more information from the following site to see how to create a windows task scheduler.
http://technet.microsoft.com/en-us/library/...

Comments

Powered by Zendesk