12 lines
202 B
Bash
Executable File
12 lines
202 B
Bash
Executable File
#!/usr/bin/env sh
|
|
pid=`ps -ef | grep bill| grep java | awk '{print $2}'`
|
|
|
|
if [ $pid ]; then
|
|
echo $pid
|
|
kill -9 $pid
|
|
fi
|
|
|
|
> nohup.out
|
|
|
|
nohup java -jar target/bill-1.0.0-SNAPSHOT.jar 2>/dev/null &
|