#!/bin/sh
sed \
    -e "s;^\(PIDFILE=\).*;\1@l_prefix@/var/bs/run/apache.pid;" \
    -e "s;^\(HTTPD=\)\(.*\);\1\"\2 -f @l_prefix@/libexec/bs/etc/bsapache.conf\";" \
    @l_prefix@/sbin/apachectl \
| sh -s "$@"
