Skip to content

Instantly share code, notes, and snippets.

@W1R3D-Code
Last active April 23, 2024 12:35
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save W1R3D-Code/19a02b13542444bae9af9262664a2be5 to your computer and use it in GitHub Desktop.
Save W1R3D-Code/19a02b13542444bae9af9262664a2be5 to your computer and use it in GitHub Desktop.
Running SonarQube as a Service on Linux with SystemD - /etc/systemd/system/sonarqube.service
[Unit]
Description=SonarQube service
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start
ExecStop=/opt/sonarqube/bin/linux-x86-64/sonar.sh stop
User=vagrant
Group=vagrant
Restart=always
LimitNOFILE=65536
LimitNPROC=8192
[Install]
WantedBy=multi-user.target
@W1R3D-Code
Copy link
Author

W1R3D-Code commented May 9, 2019

Assumptions:

  • Using Vagrant with vagrant user and group
  • The Java Virtual Machine is installed in /opt/java/
  • SonarQube has been unzipped into /opt/sonarqube/

@bhubr
Copy link

bhubr commented Apr 3, 2022

Exactly what I was looking for! Thanks!

@azurebose
Copy link

tq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment