#!/usr/bin/execlineb -P
# The runtime directory comes from the configuration, not from an assumption
# -- the rationale is in the script.
if { /usr/lib/zabbix-proxy-s6/prepare-runtime-dir }

# Readiness is not "the process is running": zabbix_proxy opens its
# runtime control socket only once configuration and database are in place.
# 60 s, because an empty SQLite database is created on the first start.
s6-notifyoncheck -d -n60 --
run-script-daemon zabbix-proxy
