From 48a19716be95a393d168795e09ca8512f75a9a5a Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Mon, 26 Apr 2021 12:02:58 +0300 Subject: [PATCH] master: Notify systemd after we are really stopped --- src/master/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.47.3