Here’s a Bash script that can stop and start a Java service.
#/bin/bash PID=$(cat app.pid) kill $PID java -jar app.jar & echo $! > app.pid
The file app.jar is an executable jar file.
No related posts.
Your email address will not be published. Required fields are marked *
Name *
Email *
Website
Comment
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
No Comments