#!/usr/bin/execlineb -P

# Debian starts master via "ExecStartPre=+postfix check": it creates missing
# queue directories (/var/spool/postfix/{maildrop,pid,public,...}) and fixes
# their ownership. Without it a fresh install on s6 has only dev/ in the
# spool, master dies in a loop on pid/master.pid and every sendmail/postdrop
# from cron hangs forever (crb2, 2026-09-18..21). Run it before every start.
if { /usr/sbin/postfix check }
run-script-daemon postfix
