#!/bin/sh

PID=$(cat /etc/service/buildmanager/supervise/pid)
gcore -o /tmp/buildman.core $PID

/usr/bin/sv kill /etc/service/buildmanager