<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><!-- NOTE: place this file in /Library/LaunchDaemons -->
    <dict>
        <key>Disabled</key>
        <false/>
        <key>Label</key>
        <string>org.eclipse.jetty</string>
        <key>ServiceDescription</key>
        <string>Jetty 6</string>
        <key>RunAtLoad</key>
        <true/>
        <key>EnvironmentVariables</key>
        <dict>
            <key>JAVA_HOME</key>
            <string>/Library/Java/Home</string>
        </dict>
        <key>WorkingDirectory</key><!-- required! -->
        <string>/path/to/jetty</string>
        <key>ProgramArguments</key>
        <array>
            <string>/usr/bin/java</string>
            <string>-Djava.io.tmpdir=/path/to/tmp</string><!-- note: run "jetty check" and use the java.io.tmpdir setting -->
            <string>-Djetty.port=8181</string>
            <string>-Djetty.home=/path/to/jetty</string>
            <string>-Djetty.logs=/path/to/jetty/logs</string>
            <string>-jar</string>
            <string>start.jar</string>
            <string>/path/to/jetty/etc/jetty-logging.xml</string>
            <string>/path/to/jetty/etc/jetty.xml</string>
        </array>
        <key>UserName</key><!-- note: this key is ignored when plist is not loaded as ROOT user -->
        <string>root</string><!-- jetty must be launched by root user in order to access privileged ports -->
    </dict>
</plist>