#!/bin/sh if ! /usr/bin/nginx -tq; then # print configuration errors /usr/bin/nginx -t exit 1 fi exec /usr/bin/nginx 2>&1