summaryrefslogtreecommitdiffstats
path: root/debian/postfix-resolvconf.path
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postfix-resolvconf.path')
-rw-r--r--debian/postfix-resolvconf.path11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/postfix-resolvconf.path b/debian/postfix-resolvconf.path
new file mode 100644
index 0000000..60380d2
--- /dev/null
+++ b/debian/postfix-resolvconf.path
@@ -0,0 +1,11 @@
+[Unit]
+Description=Watch for resolv.conf updates and restart postfix
+ConditionPathExists=/etc/resolv.conf
+
+[Path]
+PathChanged=/etc/resolv.conf
+Unit=postfix-resolvconf.service
+
+[Install]
+WantedBy=multi-user.target
+