#!/usr/bin/env ssm # For respawn to work, set 'daemon no' in nginx.conf #service_respawn=on-failure service_command='/usr/bin/nginx' service_pidfile='/run/nginx.pid' pre_reload() { "$service_command" -t "$@"; }