init full backend repo with src + deploy config
This commit is contained in:
13
bin/pre-steps.sh
Executable file
13
bin/pre-steps.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
pid=$(ps -ef | grep -w java | grep "alex-api-0.0.1-SNAPSHOT.jar" | grep -v grep | awk '{print $2}')
|
||||
|
||||
echo "Found pid: $pid"
|
||||
|
||||
if [ -z "$pid" ]; then
|
||||
echo "Java application not running."
|
||||
else
|
||||
sudo kill -9 $pid
|
||||
echo "Java application (pid: $pid) stopping..."
|
||||
sleep 2
|
||||
fi
|
Reference in New Issue
Block a user