summaryrefslogtreecommitdiffstats
path: root/debian/postfix.postfix-resolvconf.service
blob: 15044d9b42624c3a91b60519eeadef1077797fb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Update postfix in-chroot copy of /etc/resolv.conf
# Works for main/default postfix instance only
[Unit]
Description=Updates postfix copy of resolv.conf
Documentation=man:postfix(1)
Documentation=file:/usr/share/doc/postfix/README.Debian.gz
ConditionPathExists=/etc/resolv.conf
ConditionPathIsDirectory=/var/spool/postfix/etc

[Service]
Type=oneshot
ExecStart=cp -pLu /etc/resolv.conf /var/spool/postfix/etc/resolv.conf