Running SonarQube as a service vis systemctl exits immediatley

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    ** SonarQube, sonarqube-8.9.0.43852
  • what are you trying to achieve
    ** run it as a service
  • what have you tried so far to achieve this
    ** changed ExecStart to call the sonar.sh start

systemctl status sonarqube tells me that the service is deactivating:

Active: deactivating (stop-sigterm)

it should run in the name of a sonar user as set in the sonarqube.service:

User=sonar
Group=sonar

What do I miss?

Hi,

Welcome to the community!

What do your server logs say?

 
Ann

Hi @Laszlo_Kremer,

You can call the sonar-application.jar directly. There is no need to call the sonar.sh script when working with systemd. Take a look at the template in the docs Operating the Server | SonarQube Docs

The wrapper script can swallow some errors that you need to retrieve from the logs as @ganncamp mentioned

Hope that helps