Я выполняю:
# service scm-server start
SCM-Server will now be started
# service scm-server status
SCM-Server is running
PID: 2166
PID: 2167
Через несколько секунд:
# service scm-server status
SCM-Server is not running
/opt/scm-server/var/log/scm-server.err
содержит:
2015-06-11 11:05:07.934:WARN:oejuc.AbstractLifeCycle:FAILED \
SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Address already in use
java.net.BindException: Address already in use
... stack trace ...
2015-06-11 11:05:07.936:WARN:oejuc.AbstractLifeCycle:FAILED \
org.eclipse.jetty.server.Server@449628c3: java.net.BindException: Address already in use
java.net.BindException: Address already in use
... stack trace ...
Cannot load daemon
Service exit with a return value of 3
/opt/scm-server/conf/server-config.xml
содержит:
<SystemProperty name="jetty.port" default="8082" />
Порт 8082
не занято:
# netstat -tulpn | egrep '(PID|80)' | sort
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp6 0 0 127.0.0.1:8005 :::* LISTEN 1190/java
tcp6 0 0 127.0.0.1:8015 :::* LISTEN 680/java
tcp6 0 0 :::8009 :::* LISTEN 869/java
tcp6 0 0 :::8019 :::* LISTEN 680/java
tcp6 0 0 :::8080 :::* LISTEN 680/java
tcp6 0 0 :::8081 :::* LISTEN 869/java
tcp6 0 0 :::8088 :::* LISTEN 1190/java
tcp6 0 0 :::80 :::* LISTEN 602/httpd
Если я остановлю службу на 8080
scm-server
начинается успешно. Почему он пытается взять порт по умолчанию 8080
независимо от различных настроек конфигурации?