Hi I have a java server(it listens) which runs when I do:
ant compile jar run in the terminal

What I want to do is
sudo service myproject start so that I won't have to be in terminal(when I do ctrl+c in terminal or close the terminal the program stops which I don't want)

How can I do that?