Skip to content

Instantly share code, notes, and snippets.

@brunopadz
Created March 14, 2018 13:36
Show Gist options
  • Save brunopadz/cdc62bc325f17f420a091e91198e4517 to your computer and use it in GitHub Desktop.
Save brunopadz/cdc62bc325f17f420a091e91198e4517 to your computer and use it in GitHub Desktop.
systemd/sonarqube.service
[Unit]
Description=Sonarqube
After=network.target network-online.target
Wants=network-online.target
[Service]
ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start
ExecStop=/opt/sonarqube/bin/linux-x86-64/sonar.sh stop
ExecReload=/opt/sonarqube/bin/linux-x86-64/sonar.sh restart
PIDFile=/opt/sonarqube/bin/linux-x86-64/./SonarQube.pid
Type=forking
User=sonar
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment