#!/usr/bin/with-contenv bash

if pgrep -f "[n]ginx:" > /dev/null; then
    pkill -ef [n]ginx:
fi

exec /usr/sbin/nginx -c /etc/nginx/nginx.conf
