"start.sh":
nohup /usr/lib/jvm/java-1.6.0-sun/bin/java -jar Pronto-0.1-SNAPSHOT.jar 1> stdout.txt 2> stderr.txt &
echo $! > Pronto.pid
"stop.sh":
kill `cat Pronto.pid`
rm Pronto.pid
Use with caution, these are not production-ready ;-)
nohup /usr/lib/jvm/java-1.6.0-sun/bin/java -jar Pronto-0.1-SNAPSHOT.jar 1> stdout.txt 2> stderr.txt &
echo $! > Pronto.pid
kill `cat Pronto.pid`
rm Pronto.pid
No comments:
Post a Comment