#!/bin/sh

<%= render("make_metrics_rundir.erb") %>

echo "Received HUP from runit, sending to process group (-PID)"
kill -1 -- -$(cat /opt/gitlab/service/<%= @options[:service] %>/supervise/pid)

Add HUP script to unicorn runit control.
Add HUP script to unicorn runit control.

Override the default `HUP` handling for unicorn.  Include the metrics
directory setup/cleanup to avoid stale metrics files when reloading
unicorn.
