Take a look at the jetty.sh script in the $JETTY_HOME/bin directory. You can use it as an init.d boot script on unix systems.
cheers Jan On 13 April 2012 01:24, S Ahmed <sahmed1...@gmail.com> wrote: > Well what I am trying to accomplish is automate this. > > So if the server reboots, it will start the embedded jetty jar, and know the > pid so it can kill the process. > > My devops skills are a little lacking :) > > > On Thu, Apr 12, 2012 at 10:29 AM, Peter Ondruška > <peter.ondruska+je...@kaibo.eu> wrote: >> >> $$ in Unix shell should tell you last process PID >> >> Something like: >> java -jar .. >> echo $$ > /tmp/myjavapid >> kill ` cat /tmp/myjavapid ` >> >> On Thu, Apr 12, 2012 at 4:14 PM, S Ahmed <sahmed1...@gmail.com> wrote: >> > when using embedded jetty, you start the process using; >> > >> > java -jar .... >> > >> > Is it possible to set a PID so you can kill the process? >> > >> > _______________________________________________ >> > jetty-users mailing list >> > jetty-users@eclipse.org >> > https://dev.eclipse.org/mailman/listinfo/jetty-users >> > >> _______________________________________________ >> jetty-users mailing list >> jetty-users@eclipse.org >> https://dev.eclipse.org/mailman/listinfo/jetty-users > > > > _______________________________________________ > jetty-users mailing list > jetty-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/jetty-users > _______________________________________________ jetty-users mailing list jetty-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/jetty-users