#!/bin/sh

set -ue

export PATH="/sbin:/usr/sbin:$PATH"

# suppress warnings duplicate entires in /etc/mime.types
lighttpd -tt -f /etc/lighttpd/lighttpd.conf 2>&1 | grep -v '^Duplicate mimetype: ' 1>&2 || :
lighttpd -tt -f /etc/lighttpd/lighttpd.conf >/dev/null 2>&1
