[Lunar-commits] <moonbase> dovecot: Add systemd service files.

Auke Kok sofar at foo-projects.org
Mon Jun 13 08:25:35 CEST 2011


commit 91658a3c8a31e8cac25b1db24f420b43a574d44c
Author: Auke Kok <sofar at foo-projects.org>
Date:   Mon Jun 13 08:25:35 2011 +0200

    dovecot: Add systemd service files.
    
    It doesn't seem entirely right, but, it works.
---
 mail/dovecot/systemd.d/dovecot.service |   12 ++++++++++++
 mail/dovecot/systemd.d/dovecot.socket  |   15 +++++++++++++++
 2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/mail/dovecot/systemd.d/dovecot.service b/mail/dovecot/systemd.d/dovecot.service
new file mode 100644
index 0000000..68af1b9
--- /dev/null
+++ b/mail/dovecot/systemd.d/dovecot.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Dovecot IMAP/POP3 email server
+After=local-fs.target network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/dovecot -F
+NonBlocking=yes
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/mail/dovecot/systemd.d/dovecot.socket b/mail/dovecot/systemd.d/dovecot.socket
new file mode 100644
index 0000000..0fdef6f
--- /dev/null
+++ b/mail/dovecot/systemd.d/dovecot.socket
@@ -0,0 +1,15 @@
+[Unit]
+Description=Dovecot IMAP/POP3 email server activation socket
+
+[Socket]
+#dovecot expects separate IPv4 and IPv6 sockets
+BindIPv6Only=ipv6-only
+ListenStream=0.0.0.0:143
+ListenStream=[::]:143
+ListenStream=0.0.0.0:993
+ListenStream=[::]:993
+KeepAlive=true
+
+[Install]
+WantedBy=sockets.target
+


More information about the Lunar-commits mailing list