2019-12-03 11:09:37 -05:00

10 lines
282 B
Bash
Executable File

#!/usr/bin/env bash
export MGROOT="music_graph_api"
export JAVA="/usr/lib/jvm/java-11-openjdk-amd64"
screen -S mg_api -X quit
screen -S mg_api -d -m bash -c "cd ${MGROOT} && ${JAVA}/bin/java -jar target/music-graph-*-jar-with-dependencies.jar 2> stderr.txt"
sleep 1
screen -list