#!/bin/sh set -ef ## hardcoded configuration directory d=/run/ngx/conf ## reparse PATH: remove /usr/local/sbin PATH=$(printf 'x:%s:x' "${PATH}" | sed -zE 's#:/usr/local/sbin/?:#:#g;s/^x://;s/:x$//') export PATH exec env -C $d /usr/sbin/angie -p $d -c $d/angie.conf -e stderr --log-level=info -g 'error_log stderr info;' "$@" exit 126