Run command to run Go Agent as Windows service

452 views
Skip to first unread message

Darly Senecal-Baptiste

unread,
Jun 10, 2015, 3:24:47 PM6/10/15
to go...@googlegroups.com
Hi All, 

Does anyone know how to run the Windows command in order to start the agent?

I was trying to start a remote agent as a service but it wasn't possible. Even if a run the mentioned command 

C:\>C:\Go\Agnt2\cruisewrapper.exe -s C:\Go\Agnt2\config\wrapper-agent.conf

It will provide the following output

Attempting to start Go Agent as an NT service.

Calling StartServiceCtrlDispatcher...please wait.

StartServiceControlDispatcher failed!

For help, type

C:\Go\Agnt2\cruisewrapper.exe /?


Another point to mention, I tried to run the following command 

C:\>C:\Go\Agnt2\start-agent.bat


An error prompt about the agent.cmd appears:

Windows cannot find 'agent.cmd'. Make sure you typed the name correctly, and then try again.

And the output for the command

C:\>IF "" == "N" (START "go agent - C:\" /WAIT agent.cmd )  ELSE (START "go agen
t - C:\" /MIN agent.cmd )
The system cannot find the file agent.cmd.

Unless, if I access to the directory, I was able to run the command

C:\Go\Agnt2>C:\Go\Agnt2\start-agent.bat

C:\Go\Agnt2>IF "" == "N" (START "go agent - C:\Go\Agnt2" /WAIT agent.cmd )  ELSE
 (START "go agent - C:\Go\Agnt2" /MIN agent.cmd )

Aravind SV

unread,
Jun 10, 2015, 5:08:17 PM6/10/15
to go...@googlegroups.com
Hello Darly,

I don't know exactly what you're trying to do, but if you're trying to install multiple agents as Windows services on the same box, here is the documentation for it.

Cheers,
Aravind

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages