#!/bin/bash

set -e
# currently unused
. nginx_common.sh

PIDS=$(
	ps -eo pid,comm,args |
		awk '/nginx: master process/ {print $1}'
)

if [ -n "$PIDS" ]; then
	kill -QUIT $PIDS
else
	echo "No nginx master process found, not attempting to stop."
fi
