util.startup: Fix notifying config-reload to systemd
authorKim Alvefur <zash@zash.se>
Mon, 08 Apr 2024 09:29:58 +0200
changeset 13481 e8ac3ce3238e
parent 13480 b9267ce1b183
child 13482 fe7557cf31a6
util.startup: Fix notifying config-reload to systemd Does this event name seem backwards to anyone else?
util/startup.lua
--- a/util/startup.lua	Sun Apr 07 18:36:00 2024 +0200
+++ b/util/startup.lua	Mon Apr 08 09:29:58 2024 +0200
@@ -831,7 +831,7 @@
 	prosody.events.add_handler("server-started", function()
 		notify_socket:send("READY=1");
 	end);
-	prosody.events.add_handler("config-reloading", function()
+	prosody.events.add_handler("reloading-config", function()
 		notify_socket:send(string.format("RELOADING=1\nMONOTONIC_USEC=%d", math.floor(time.monotonic() * 1000000)));
 	end);
 	prosody.events.add_handler("config-reloaded", function()