With reference to https://docs.sonarqube.org/latest/setup/operate-server/
I tried to create a Sonarqube window service with following command but it doesn’t work.
sc create SonarQube binPath= “”%SONARQUBE_HOME%\bin\windows-x86-64\wrapper.exe" -s %SONARQUBE_HOME%\conf\wrapper.conf"
I noticed if I create the service without the conf file argument, service is created successfully.
When I check the sc create parameter, doesn’t seem to have “-s” to take in config file.
Here’s what I got in sc create:
NOTE: The option name includes the equal sign.
A space is required between the equal sign and the value.
type= <own|share|interact|kernel|filesys|rec|userown|usershare>
(default = own)
start= <boot|system|auto|demand|disabled|delayed-auto>
(default = demand)
error= <normal|severe|critical|ignore>
(default = normal)
binPath= <BinaryPathName to the .exe file>
group=
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
(default = LocalSystem)
DisplayName=
password=