0

This question might be repeated, but I get confuse how to do it.

I have one java project with .jar file. Now I want to run this project in background independent of console.

Means want to make a service that can be START servicename and STOP servicename, and also when service get stopped it will automatically restart.

Now I made only one shell script as " java -cp abc.jar filename & " and stopping server just kill that port number.

So please suggest me the proper way to make service from .jar file and how it will get restarted automatically after stopped.

Edit : Actually my server on linux is not stopped its just unresponsive because at client side when it shows server connection error, server is still running means port number is still in LIST mode.

Should I increase the ulimit ?

Rupesh Nerkar
  • 391
  • 1
  • 3
  • 23

0 Answers0