From: Aki Tuomi Date: Mon, 26 Apr 2021 09:02:58 +0000 (+0300) Subject: master: Notify systemd after we are really stopped X-Git-Tag: 2.3.15~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48a19716be95a393d168795e09ca8512f75a9a5a;p=thirdparty%2Fdovecot%2Fcore.git master: Notify systemd after we are really stopped --- diff --git a/src/master/main.c b/src/master/main.c index 9325a27b1f..0e257a27e5 100644 --- a/src/master/main.c +++ b/src/master/main.c @@ -467,7 +467,6 @@ static void sig_die(const siginfo_t *si, void *context ATTR_UNUSED) services->destroying = TRUE; i_sd_notify(0, "STOPPING=1\nSTATUS=Dovecot stopping..."); master_service_stop(master_service); - i_sd_notify(0, "STATUS=Dovecot stopped"); } static struct master_settings *master_settings_read(void) @@ -593,6 +592,8 @@ static void main_deinit(void) service_anvil_global_deinit(); service_pids_deinit(); + /* notify systemd that we are done */ + i_sd_notify(0, "STATUS=Dovecot stopped"); } static const char *get_full_config_path(struct service_list *list)