-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·34 lines (26 loc) · 814 Bytes
/
Copy pathstart.sh
File metadata and controls
executable file
·34 lines (26 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
echo "--- Iniciando unimusic-server ---"
JAR_ONE=$(find unimusic-server/target -maxdepth 1 -name "*.jar" ! -name "*.jar.original")
if [ -z "$JAR_ONE" ]; then
exit 1
fi
java -jar $JAR_ONE > unimusic-server.log 2>&1 &
PID_ONE=$!
echo "$PID_ONE" > unimusic-server.pid
echo "$JAR_ONE PID: $PID_ONE"
echo ""
echo "--- Iniciando playlist-server ---"
JAR_TWO=$(find playlist-server/target -maxdepth 1 -name "*.jar" ! -name "*.jar.original")
if [ -z "$JAR_TWO" ]; then
kill $PID_ONE
rm unimusic-server.pid
exit 1
fi
java -jar $JAR_TWO > playlist-server.log 2>&1 &
PID_TWO=$!
echo "$PID_TWO" > playlist-server.pid
echo "$JAR_TWO with PID: $PID_TWO"
echo ""
echo "-------------------------------------"
echo " ✅ Microservices inicializados"
echo "-------------------------------------"