Skip to content

Instantly share code, notes, and snippets.

@bhubr
Forked from W1R3D-Code/sonarqube.service
Created March 1, 2023 06:25
Show Gist options
  • Save bhubr/b5b37392249f04e2ec5e859d5f9e2552 to your computer and use it in GitHub Desktop.
Save bhubr/b5b37392249f04e2ec5e859d5f9e2552 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment