Here’s a Bash script that can stop and start a Java service.
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 *
Save my name, email, and website in this browser for the next time I comment.