Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 3c4cfc9

Browse files
chore(servers): set server ports in service script
1 parent 1538f18 commit 3c4cfc9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

debian/clustering-server-init-d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ fi
1515
# Author: Christophe Maldivi <christophe.maldivi@orange.com>
1616

1717
SERVICE_NAME=ClusteringServer
18+
SERVER_PORT=1958
1819
PATH_TO_JAR=/usr/share/java/clustering-server.jar
1920
PID_PATH_NAME=/tmp/$SERVICE_NAME-pid
2021

2122
case $1 in
2223
start)
2324
echo "Starting $SERVICE_NAME ..."
2425
if [ ! -f $PID_PATH_NAME ]; then
25-
nohup java -jar $PATH_TO_JAR 2>> /dev/null >> /dev/null &
26+
nohup java -jar $PATH_TO_JAR --server.port=$SERVER_PORT 2>> /dev/null >> /dev/null &
2627
echo $! > $PID_PATH_NAME
2728
echo "$SERVICE_NAME started ..."
2829
else

debian/mediation-server-init-d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ fi
1515
# Author: Christophe Maldivi <christophe.maldivi@orange.com>
1616

1717
SERVICE_NAME=MediationServer
18+
SERVER_PORT=2407
1819
PATH_TO_JAR=/usr/share/java/mediation-server.jar
1920
PID_PATH_NAME=/tmp/$SERVICE_NAME-pid
2021

2122
case $1 in
2223
start)
2324
echo "Starting $SERVICE_NAME ..."
2425
if [ ! -f $PID_PATH_NAME ]; then
25-
nohup java -jar $PATH_TO_JAR 2>> /dev/null >> /dev/null &
26+
nohup java -jar $PATH_TO_JAR --server.port=$SERVER_PORT 2>> /dev/null >> /dev/null &
2627
echo $! > $PID_PATH_NAME
2728
echo "$SERVICE_NAME started ..."
2829
else

0 commit comments

Comments
 (0)