Skip to content

Instantly share code, notes, and snippets.

@brunorozendo
Created April 18, 2018 18:54
Show Gist options
  • Select an option

  • Save brunorozendo/2862db118e0b6d18846c5f9bd8555ef3 to your computer and use it in GitHub Desktop.

Select an option

Save brunorozendo/2862db118e0b6d18846c5f9bd8555ef3 to your computer and use it in GitHub Desktop.
SonarQube Ubuntu
/opt/sonar/sonarqube-7.1$ sudo chown bruno:bruno -R .
sudo chmod 777 -R /opt/sonar/sonarqube-7.1/temp/
cd /etc/systemd/system
nano sonar.service
[Unit]
Description=Sonar 7.1
After=network.target network-online.target
Wants=network-online.target

[Service]
User=bruno
Group=bruno
Type=forking
Restart=always
ExecStart=/opt/sonar/sonarqube-7.1/bin/linux-x86-64/sonar.sh start
ExecStop=/opt/sonar/sonarqube-7.1/bin/linux-x86-64/sonar.sh stop
ExecReload=/opt/sonar/sonarqube-7.1/bin/linux-x86-64/sonar.sh restart


[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment