Guest User

Untitled

a guest
Apr 26th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. ```
  2. /opt/sonar/sonarqube-7.1$ sudo chown bruno:bruno -R .
  3. sudo chmod 777 -R /opt/sonar/sonarqube-7.1/temp/
  4. ```
  5. ```
  6. cd /etc/systemd/system
  7. nano sonar.service
  8. ```
  9. ```
  10. [Unit]
  11. Description=Sonar 7.1
  12. After=network.target network-online.target
  13. Wants=network-online.target
  14.  
  15. [Service]
  16. User=bruno
  17. Group=bruno
  18. Type=forking
  19. Restart=always
  20. ExecStart=/opt/sonar/sonarqube-7.1/bin/linux-x86-64/sonar.sh start
  21. ExecStop=/opt/sonar/sonarqube-7.1/bin/linux-x86-64/sonar.sh stop
  22. ExecReload=/opt/sonar/sonarqube-7.1/bin/linux-x86-64/sonar.sh restart
  23.  
  24.  
  25. [Install]
  26. WantedBy=multi-user.target
  27. ```
Add Comment
Please, Sign In to add comment