576df0
diff --git a/modules/arch/unix/mod_systemd.c b/modules/arch/unix/mod_systemd.c
576df0
index 7a82a90..6c244b6 100644
576df0
--- a/modules/arch/unix/mod_systemd.c
576df0
+++ b/modules/arch/unix/mod_systemd.c
576df0
@@ -100,6 +100,21 @@ static int systemd_post_config(apr_pool_t *pconf, apr_pool_t *plog,
576df0
     return OK;
576df0
 }
576df0
 
576df0
+/* Report the service is ready in post_config, which could be during
576df0
+ * startup or after a reload.  The server could still hit a fatal
576df0
+ * startup error after this point during ap_run_mpm(), so this is
576df0
+ * perhaps too early, but by post_config listen() has been called on
576df0
+ * the TCP ports so new connections will not be rejected.  There will
576df0
+ * always be a possible async failure event simultaneous to the
576df0
+ * service reporting "ready", so this should be good enough. */
576df0
+static int systemd_post_config_last(apr_pool_t *p, apr_pool_t *plog,
576df0
+                               apr_pool_t *ptemp, server_rec *main_server)
576df0
+{
576df0
+    sd_notify(0, "READY=1\n"
576df0
+              "STATUS=Configuration loaded.\n");
576df0
+    return OK;
576df0
+}
576df0
+
576df0
 static int systemd_pre_mpm(apr_pool_t *p, ap_scoreboard_e sb_type)
576df0
 {
576df0
     int rv;
576df0
@@ -187,6 +202,8 @@ static void systemd_register_hooks(apr_pool_t *p)
576df0
     ap_hook_pre_config(systemd_pre_config, NULL, NULL, APR_HOOK_LAST);
576df0
     /* Grab the listener config. */
576df0
     ap_hook_post_config(systemd_post_config, NULL, NULL, APR_HOOK_LAST);
576df0
+    /* Signal service is ready. */
576df0
+    ap_hook_post_config(systemd_post_config_last, NULL, NULL, APR_HOOK_REALLY_LAST);
576df0
     /* We know the PID in this hook ... */
576df0
     ap_hook_pre_mpm(systemd_pre_mpm, NULL, NULL, APR_HOOK_LAST);
576df0
     /* Used to update httpd's status line using sd_notifyf */