util/startup.lua
changeset 13481 e8ac3ce3238e
parent 13475 afad3b2725bf
equal deleted inserted replaced
13480:b9267ce1b183 13481: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);