Jetty is now installed in /usr/local/jetty

You may want to activate it in /etc/rc.conf:

  # echo jetty_enable="YES" >> /etc/rc.conf

Then copy the sample configuration file to the proper location:

  # cp /usr/local/jetty/etc/jetty.xml /usr/local/etc/jetty.xml

Now, start Jetty:

env - /usr/local/etc/rc.d/jetty.sh start

For this control script to run seamlessly, it is recommended to increase the
maximum length of commands displayed by ps(1).  Please append the following
setting to /etc/sysctl.conf:

  # Do not truncate command line arguments in ps(1) listing
  kern.ps_arg_cache_limit=10000

This setting will take effect at next reboot, however it is possible to have
immediate effect with the following command as root:

  # sysctl kern.ps_arg_cache_limit=10000

If you wish to skip this setting, please note that the `stop', `restart' and
`status' will not function properly with jetty.sh.

Once Jetty is started, point your web browser to the default home page at
http://localhost:8080/test/ to read the documentation and test the samples.

Jetty configuration is located at /usr/local/etc/jetty.xml


Enjoy!

--------------------------------------------------------------------------------
ADVANCED USAGE

If you need to pass special options to Java, please set the
jetty_flags option in /etc/rc.conf, see examples below:

  # Prevent Java from opening an X11 display

  jetty_flags="-Djava.awt.headless=true"

  # Increase memory limit of the Java virtual machine

  jetty_flags="-Xms32m -Xmx256m"

  # Run Java with remote debugging turned on on port 8000

  jetty_flags="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"

To specify the java version to use, please use jetty_java_version:

  jetty_java_version="1.4"

