summaryrefslogtreecommitdiffstats
path: root/debian/postfix@.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postfix@.service')
-rw-r--r--debian/postfix@.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/postfix@.service b/debian/postfix@.service
new file mode 100644
index 0000000..82e48a5
--- /dev/null
+++ b/debian/postfix@.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Postfix Mail Transport Agent (instance %i)
+Documentation=man:postfix(1)
+PartOf=postfix.service
+Before=postfix.service
+ReloadPropagatedFrom=postfix.service
+After=network-online.target nss-lookup.target
+Wants=network-online.target
+
+[Service]
+Type=forking
+GuessMainPID=no
+ExecStartPre=/usr/lib/postfix/configure-instance.sh %i
+ExecStart=/usr/sbin/postmulti -i %i -p start
+ExecStop=/usr/sbin/postmulti -i %i -p stop
+ExecReload=/usr/sbin/postmulti -i %i -p reload
+
+[Install]
+WantedBy=multi-user.target