#!/bin/execlineb -P

fdmove -c 2 1

define servicedir "/etc/qmail/service"

# Retrieve configuration from the general qmail envdir
s6-envdir -I "/etc/sysconfig/qmail"

# The specific qmail-smtpd envdir will override the general qmail envdir
s6-envdir -I "/etc/sysconfig/qmail-smtpd"


# Attach a supervise tree to our parent supervise branch
cd $servicedir
s6-svscan -d3 -St0
