smlinux/net/nginx/nginx.run

7 lines
125 B
Bash

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