#!/usr/bin/execlineb -P
# Debian provides /run/php via tmpfiles ("d /run/php 0755 www-data www-data",
# checked in /usr/lib/tmpfiles.d/php8.5-fpm.conf), and systemd-tmpfiles does
# not run under s6. So the unit creates it itself -- with exactly these
# permissions, because the pool www creates its socket there as www-data.
if { install -d -m 0755 -o www-data -g www-data /run/php }

# Readiness is not "the process is running": php-fpm first reads the pools and
# then creates the socket. data/check connects to the socket.
s6-notifyoncheck -d -n30 --
run-script-daemon php-fpm
