360 Mar 25 2019 postfix-instance-generator

#!/bin/sh 
set -e  # errorexit

WANTDIR="$1/postfix.service.wants"
SERVICEFILE="/lib/systemd/system/postfix@.service"

mkdir -p "$WANTDIR"

ln -s "$SERVICEFILE" "$WANTDIR/postfix@-.service"
for DIR in $(postconf -h multi_instance_directories); do
    ln -s "$SERVICEFILE" "$WANTDIR/postfix@$(postconf -o inet_interfaces= -hc $DIR multi_instance_name).service"
done

exit 0
++++++++++++++++++++++++++++++++++++++++

Executables:
       26,324 Jul 08 2021 systemd-sysv-generator
        5,784 Jul 08 2021 systemd-system-update-generator
        9,880 Jul 08 2021 systemd-rc-local-generator
        9,880 Jul 08 2021 systemd-hibernate-resume-generator
       30,388 Jul 08 2021 systemd-gpt-auto-generator
        9,880 Jul 08 2021 systemd-getty-generator
       26,340 Jul 08 2021 systemd-fstab-generator
        9,880 Jul 08 2021 systemd-debug-generator
       18,092 Jul 08 2021 systemd-cryptsetup-generator