comparison util/startup.lua @ 13477:e8ac3ce3238e

util.startup: Fix notifying config-reload to systemd Does this event name seem backwards to anyone else?
author Kim Alvefur <zash@zash.se>
date Mon, 08 Apr 2024 09:29:58 +0200
parents afad3b2725bf
children a350f6332bd8
comparison
equal deleted inserted replaced
13476:b9267ce1b183 13477:e8ac3ce3238e
829 829
830 prosody.notify_socket = notify_socket; 830 prosody.notify_socket = notify_socket;
831 prosody.events.add_handler("server-started", function() 831 prosody.events.add_handler("server-started", function()
832 notify_socket:send("READY=1"); 832 notify_socket:send("READY=1");
833 end); 833 end);
834 prosody.events.add_handler("config-reloading", function() 834 prosody.events.add_handler("reloading-config", function()
835 notify_socket:send(string.format("RELOADING=1\nMONOTONIC_USEC=%d", math.floor(time.monotonic() * 1000000))); 835 notify_socket:send(string.format("RELOADING=1\nMONOTONIC_USEC=%d", math.floor(time.monotonic() * 1000000)));
836 end); 836 end);
837 prosody.events.add_handler("config-reloaded", function() 837 prosody.events.add_handler("config-reloaded", function()
838 notify_socket:send("READY=1"); 838 notify_socket:send("READY=1");
839 end); 839 end);