Followed sonarqube setup instructions from below link. But executing chkconfig command failed. It is blocking me to start the sonarqube as service in centos7.
http://docs.sonarqube.org/display/SONAR/Running+SonarQube+as+a+Service+on+Linux
http://devopscube.com/setup-and-configure-sonarqube-on-linux/
[build@inches-jenkins-master ~]$ cat /etc/init.d/sonar
#! /usr/bin/sh
/usr/bin/sonar $*
[build@inches-jenkins-master ~]$ which sh
/usr/bin/sh
[build@inches-jenkins-master ~]$ ls -lrt /usr/bin/sonar
lrwxrwxrwx. 1 root root 50 Aug 30 16:59 /usr/bin/sonar -> /usr/local/sonarqube-6.0/bin/linux-x86-64/sonar.sh
[build@inches-jenkins-master init.d]$ sudo chkconfig --add sonar
service sonar does not support chkconfig
No issues while starting manually.
[build@inches-jenkins-master init.d]$ sudo sonar start
Starting SonarQube...
Started SonarQube.
[build@inches-jenkins-master init.d]$
Copyright Notice:Content Author:「divakar.scm」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/39226917/sonarqube-service-sonar-does-not-support-chkconfig-in-centos-7