I’ve finally managed to get Jetty7 running as a service in Debian.
Still, I’m unsure if I made the right steps or didn’t forget something.
So far, I’ve done the following:
- Untared the downloaded tar file to
/opt/jetty-distribution-$JETTY_VERSION - Created a softlink
`/opt/jettypointing to/opt/jetty-distribution-$JETTY_VERSION - Copied the
jetty.shfile (found in/opt/bin/jetty.etcto/etc/init.d - Uncommented the three lines (like the comments in the
shfile say)
Is this okay? I didn’t set $JETTY_HOME, JAVA_HOME, JAVA explicitely, as Jetty seems to be able to figure them out.
I don’t know anything about Debian but in SUSE/Redhat you’d have to actually add that to your runlevels
chkconfig –add jetty.sh
and there are some header lines you should have at the beginning of jetty.sh (take a look at other /etc/init.d stuff for example)