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-
  • 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 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:


What do I miss?


Welcome to the community!

What do your server logs say?


Hi @Laszlo_Kremer,

You can call the sonar-application.jar directly. There is no need to call the 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

Actually, this helped:

sudo journalctl -u sonarqube

I’ve found that the ExecStart was wrong in my case, I had to correct from /bin/nohup to /usr/bin/nohup

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.