You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011
  1. #!/bin/sh
  2. [[ -f ./setup ]] && source ./setup
  3. if ! nginx -q -t -c /etc/nginx/nginx.conf; then
  4. echo "Bad nginx configuration file"
  5. exit 1
  6. fi
  7. exec 2>&1 # pipe stderr to stdout
  8. exec nginx -c /etc/nginx/nginx.conf -g 'daemon off;'