Problem Creating window services for multiple team city Instances

hi there,

so sorry to bother i install multiple team city in a same server. i have 2 different database schema created, i have an window server 2012 which i used the teamcity full installation for windows. i have install it in 2 different location as below:-

teamcity

c:\teamcity1

c:\teamcity2

teamcity data path

c:\ProgramData\JetBrains\teamcity1

c:\ProgramData\JetBrains\teamcity2

external oracle database scehema

Teamcity1

Teamcity2

I created the window service in cmd with

sc create TeamCity1  DisplayName= "TeamCity1" start= auto binPath= "C:\TeamCity1\bin\tomcat7.exe //RS//TeamCity1"

sc create TeamCity2  DisplayName= "TeamCity2" start= auto binPath= "C:\TeamCity2\bin\tomcat7.exe //RS//TeamCity2"


But am having problem to create the window service for the servers. it has give me the error 1053 window not responding in the timing matter

Question:

how to create a window service ?

2 comments
Comment actions Permalink

Hi,

To run multiple TeamCity servers as services please use the following command:

sc create TeamCity1 binPath= "\"C:\TeamCity1\bin\TeamCityService.exe\" jetservice \"/settings=C:\TeamCity1\conf\teamcity-server-service.xml\" \"/LogFile=C:\TeamCity1\logs\teamcity-winservice.log\"" DisplayName= "TeamCity Server 1" start= auto obj= ".\TeamCity1" password= "Password1"

For more details please read the related answer on StackOverflow.

0
Comment actions Permalink

While it is not recommended to run two TeamCity services on one machine. For more details see the related issue.

0

Please sign in to leave a comment.