<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Le 18 avr. 2021 à 08:22, Felix Zielcke <<a href="mailto:fzielcke@z-51.de" class="">fzielcke@z-51.de</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="">Am Sonntag, dem 18.04.2021 um 08:17 +0200 schrieb Jean-Daniel:<br class=""><blockquote type="cite" class="">systemd don’t need pid files, and the executable must be started<br class="">without forking.<br class=""><br class=""><br class="">Can you show us the content fo the system dovecot.service file. As<br class="">long as it contains this line, it should be fine:<br class=""><br class="">Type=simple<br class="">ExecStart=/usr/sbin/dovecot -F<br class=""></blockquote><br class="">Just before I saw your mail, I found now a solution.<br class=""><br class="">The original dovecot.service has this:<br class=""><br class="">[Service]<br class="">Type=notify<br class="">ExecStart=/usr/sbin/dovecot -F<br class=""><br class="">which according to systemd.service man page needs a sd_notify() call<br class="">from the running process. So somehow this is broken now?<br class=""><br class="">I changed it to the following and now it works:<br class=""><br class="">[Service]<br class="">Type=forking<br class="">ExecStart=/usr/sbin/dovecot<br class=""><br class=""><br class=""><br class="">I don't know that much about systemd what of forking/exec/simple would<br class="">be the best one.<br class=""><br class=""></div></div></blockquote></div><br class=""><div class="">The forking type exists mainly for compatibility with executables that are not able to start without forking.</div><div class=""><br class=""></div><div class="">When an executable as a « foreground » mode, it is usually recommended to use it instead.</div><div class=""><br class=""></div><div class="">The snippet I posted come from the official dovecot ubuntu distribution (from <a href="https://repo.dovecot.org" class="">https://repo.dovecot.org</a>) (that’s the one I’m using).</div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>