File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <project name =" datastore " default =" copyAll" basedir =" ." >
2
+ <project name =" springboot-package " default =" copyAll" basedir =" ." >
3
3
<property name =" build" value =" build" />
4
4
<property name =" target" value =" target" />
5
5
<target name =" clean" >
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ APPDIR=` pwd`
3
+ PIDFILE=$APPDIR /springboot-package.pid
4
+ if [ -f " $PIDFILE " ] && kill -0 $( cat " $PIDFILE " ) ; then
5
+ echo " springboot-package is already running..."
6
+ exit 1
7
+ fi
8
+ nohup java -jar $APPDIR /springboot-package.jar > /dev/null 2>&1 &
9
+ echo $! > $PIDFILE
10
+ echo " start springboot-package..."
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ APPDIR=` pwd`
3
+ PIDFILE=$APPDIR /springboot-package.pid
4
+ if [ ! -f " $PIDFILE " ] || ! kill -0 " $( cat " $PIDFILE " ) " ; then
5
+ echo " springboot-package not running..."
6
+ else
7
+ echo " stopping springboot-package..."
8
+ PID=" $( cat " $PIDFILE " ) "
9
+ kill -9 $PID
10
+ rm " $PIDFILE "
11
+ echo " ...springboot-package stopped"
12
+ fi
You can’t perform that action at this time.
0 commit comments