#!/usr/bin/env bash set -euo pipefail # runit's run script for smallwebwaf, run again whenever smallwebwaf # exits; the wait spaces out the restarts. exec, so that the signal # `sv stop` sends reaches smallwebwaf itself. main() { sleep 1 exec chpst -u smallwebwaf:smallwebwaf /usr/local/bin/smallwebwaf } main "$@"