at_server_startstop.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. """
  2. Server startstop hooks
  3. This module contains functions called by Evennia at various
  4. points during its startup, reload and shutdown sequence. It
  5. allows for customizing the server operation as desired.
  6. This module must contain at least these global functions:
  7. at_server_start()
  8. at_server_stop()
  9. at_server_reload_start()
  10. at_server_reload_stop()
  11. at_server_cold_start()
  12. at_server_cold_stop()
  13. """
  14. def at_server_start():
  15. """
  16. This is called every time the server starts up, regardless of
  17. how it was shut down.
  18. """
  19. pass
  20. def at_server_stop():
  21. """
  22. This is called just before the server is shut down, regardless
  23. of it is for a reload, reset or shutdown.
  24. """
  25. pass
  26. def at_server_reload_start():
  27. """
  28. This is called only when server starts back up after a reload.
  29. """
  30. pass
  31. def at_server_reload_stop():
  32. """
  33. This is called only time the server stops before a reload.
  34. """
  35. pass
  36. def at_server_cold_start():
  37. """
  38. This is called only when the server starts "cold", i.e. after a
  39. shutdown or a reset.
  40. """
  41. pass
  42. def at_server_cold_stop():
  43. """
  44. This is called only when the server goes down due to a shutdown or
  45. reset.
  46. """
  47. pass