summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Iannetta <paul.iannetta@ens-lyon.fr>2022-04-22 00:04:10 +0200
committerPaul Iannetta <paul.iannetta@ens-lyon.fr>2022-04-22 08:24:15 +0200
commita23da99177cae9705f33fbae4aa20409201e3c34 (patch)
tree288f88e22d8f96557a8692ebc67e548be4bcef13
parentc86932296809fb0b9dec4af024869a0648ac8ffd (diff)
add dovecot as a systemd service
-rwxr-xr-x.config/systemd/user/dovecot.service38
1 files changed, 38 insertions, 0 deletions
diff --git a/.config/systemd/user/dovecot.service b/.config/systemd/user/dovecot.service
new file mode 100755
index 0000000..a270ef5
--- /dev/null
+++ b/.config/systemd/user/dovecot.service
@@ -0,0 +1,38 @@
+# This file is part of Dovecot
+#
+# DO NOT CUSTOMIZE THIS FILE, INSTEAD
+# create the file:
+# `/etc/systemd/system/dovecot.service.d/service.conf'.
+# or copy this as
+# `/etc/systemd/system/dovecot.service` and edit then
+# and put your changes there
+
+[Unit]
+Description=Dovecot IMAP/POP3 email server
+Documentation=man:dovecot(1)
+Documentation=http://wiki2.dovecot.org/
+After=local-fs.target network-online.target
+
+[Service]
+Type=simple
+ExecStart=/home/lys/.local/sbin/dovecot -c /home/lys/.config/dovecot/dove.conf
+PIDFile=/home/lys/.local/var/run/dovecot/master.pid
+ExecReload=/home/lys/.local/bin/doveadm reload
+ExecStop=/home/lys/.local/bin/doveadm stop
+Restart=always
+RestartSec=10
+# PrivateTmp=true
+# NonBlocking=yes
+# ProtectSystem=full
+# ProtectHome=no
+# PrivateDevices=true
+
+# You can add environment variables with e.g.:
+#Environment='CORE_OUTOFMEM=1'
+# If you have trouble with `Too many open files', increase
+LimitNOFILE=65535
+# If you want to allow the Dovecot services to produce core dumps, use:
+#LimitCORE=infinity
+
+[Install]
+WantedBy=default.target