Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The following has been tested on Ubuntu 8.10 and CentOS 6.2.

Create the file /etc/init.d/sonar with this content:

Code Block
#!/bin/sh
#
# rc file for SonarSonarQube
#
# chkconfig: 345 96 10
# description: SonarSonarQube system (www.sonarsource.org)
#
### BEGIN INIT INFO
# Provides: sonar
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: SonarSonarQube system (www.sonarsource.org)
# Description: SonarSonarQube system (www.sonarsource.org)
### END INIT INFO

/usr/bin/sonar $*

Register Sonar SonarQube at boot time (Ubuntu, 32 bit):

Code Block
sudo ln -s $SONAR_HOME/bin/linux-x86-32/sonar.sh /usr/bin/sonar
sudo chmod 755 /etc/init.d/sonar
sudo update-rc.d sonar defaults

Register Sonar SonarQube at boot time (RedHat, CentOS, 64 bit):

...