Wednesday, February 25, 2015

autostart sonarqube on ubuntu 10.04 x64


   
 #!/bin/sh  
 #  
 # rc file for SonarQube  
 #  
 # chkconfig: 345 96 10  
 # description: SonarQube 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: SonarQube system (www.sonarsource.org)  
 # Description: SonarQube system (www.sonarsource.org)  
 ### END INIT INFO  
    
 /usr/bin/sonar $*  
   
 ...  
   
 custom install here:  
 /opt/sonarqube-4.4.1/  
   
 # ln -s /opt/sonarqube-4.4.1/bin/linux-x86-64/sonar.sh /usr/bin/sonar  
 # chmod 755 /etc/init.d/sonar   
 # update-rc.d sonar defaults  
   
 double-check:  
 # sysv-rc-conf   
   
 yep.  

No comments: