#!/bin/bash
# limit open files
# ulimit -n 12345
# limit resident size to 5 GB, which is plenty
# ulimit -m 5000000
exec 2>&1
if [ -x /opt/logjam/bin/logjam-fhttpd ]; then
  httpd=/opt/logjam/bin/logjam-fhttpd
else
  httpd=/usr/local/bin/logjam-fhttpd
fi

if test -f /etc/default/logjam; then
    set -a; source /etc/default/logjam; set +a
fi

exec $httpd -p HTTPD_PORT -d 73 "$@"
