I used procrun to generate the service
This is my configuration file:

set SERVICE_NAME=jenkinsTest99
set PR_INSTALL=g:\jenkins\test\prunsrv.exe
 
REM Service log configuration
set PR_LOGPREFIX=%SERVICE_NAME%
set PR_LOGPATH=c:\logs
set PR_STDOUTPUT=c:\logs\stdout.txt
set PR_STDERROR=c:\logs\stderr.txt
set PR_LOGLEVEL=Error
 
REM Path to java installation
set PR_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
set PR_CLASSPATH=g:\jenkins\test\slave.jar
 
REM Startup configuration
set PR_STARTUP=auto
set PR_STARTMODE=jvm
set PR_STARTCLASS=hudson.remoting.jnlp.Main
set PR_STARTMETHOD=main
set PR_STARTPARAMS=url=http://
111.11.11.111/jenkins/computer/222.22.22.2/slave-agent.jnlp

 
REM Shutdown configuration
set PR_STOPMODE=jvm
set PR_STOPCLASS=Main
set PR_STOPMETHOD=stop
 
REM JVM configuration
set PR_JVMMS=256
set PR_JVMMX=1024
set PR_JVMSS=4000
set PR_JVMOPTIONS=-Duser.language=DE;-Duser.region=de
REM Install servic 
prunsrv.exe //IS//%SERVICE_NAME%



in the service properties I got 
g:\jenkins\test\prunsrv.exe //RS//jenkinsTest2

And when I start the service, I got the error message above

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/03348bad-c4cb-4355-9e1c-663d4da64119%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to