AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 13.58.221.124


Current Path : /lib/systemd/system-generators/
Upload File :
Current File : //lib/systemd/system-generators/postfix-instance-generator

#!/bin/sh

set -e

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