The documentation Running SonarQube as a Service on Linux was last updated August 2013 (over 5 years ago) and covers CentOS 6.2 but not CentOS 7 (specifically, no mention of systemd)
I log this under “report a bug” because CentOS 6 is now in “Maintenance updates phase” (only Security errata and select mission critical bug fixes will be released).
This is what worked for me…
sonar.service file (deployed to /usr/lib/systemd/system/)
I have add the two line in the service but style have the error :
[2] bootstrap checks failed
[1]: max number of threads [2048] for user [svcpulg] is too low, increase to at least [4096]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]