Ideally, you will have created a new account dedicated to the purpose of running SonarQube. You cannot run SonarQube as root in 'nix systems. The following has been tested on Ubuntu 20.04 and CentOS 6.2. Sudo systemctl start rvice Running SonarQube as a service on Linux with initd Once your rvice file is created and properly configured, run: sudo systemctl enable rvice All SonarQube directories should be owned by the sonarqube user.Because the sonar-application jar name ends with the version of SonarQube, you will need to adjust the ExecStart command accordingly on install and at each upgrade.Then create the file /etc/systemd/system/rvice based on the following: ĮxecStart=/bin/nohup /opt/java/bin/java -Xms32m -Xmx32m 4Stack=true -jar /opt/sonarqube/lib/sonar-application-8.5.jar SonarQube has been unzipped into /opt/sonarqube/.The Java Virtual Machine is installed in /opt/java/.The group used to start the service is sonarqube.The user used to start the service is sonarqube.You cannot run SonarQube as root in Unix systems. On a Unix system using SystemD, you can install SonarQube as a service. ![]() Running SonarQube as a service on Linux with SystemD The time a stop will take depends on the processing time of the tasks in progress. ![]() ![]() Stop does a graceful shutdown where no new analysis report processing can start, but the tasks in progress are allowed to finish.
0 Comments
Leave a Reply. |