Am 23.05.20 um 11:14 schrieb Nis Martensen: > Thanks a lot Noah and Michael for working on this! > > Michael Biebl wrote: >> The patch to add sd_notify is rather trivial. Problem is, that dovecot >> unhelpfully clears the full environment. In src/master/main.c, >> sd_notify() should be called around/after main_init(). >> Unfortunately, at this point master_service_env_clean() has been called, >> clearing the process environment, including NOTIFY_SOCKET, which is >> passed from systemd to dovecot and is needed to make sd_notify work. >> >> I haven't found a way how to instruct dovecot not to clear the >> NOTIFY_SOCKET env var. > > I have no idea if this works, but did you try adding NOTIFY_SOCKET to > line 65 of src/lib-master/master-service-settings.c?
This does the trick. Thanks, Nis.
signature.asc
Description: OpenPGP digital signature