mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 12:07:17 +02:00
Add server restart messaging also when restarting server from the shell.
This commit is contained in:
parent
33e1d03077
commit
cdaa137868
2 changed files with 2 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class CmdReload(COMMAND_DEFAULT_CLASS):
|
|||
reason = ""
|
||||
if self.args:
|
||||
reason = "(Reason: %s) " % self.args.rstrip(".")
|
||||
SESSIONS.announce_all(" Server restarting %s..." % reason)
|
||||
SESSIONS.announce_all(" Server restart initiated %s..." % reason)
|
||||
SESSIONS.server.shutdown(mode='reload')
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ class AmpClientFactory(protocol.ReconnectingClientFactory):
|
|||
|
||||
"""
|
||||
if hasattr(self, "server_restart_mode"):
|
||||
self.portal.sessions.announce_all(" Server restarting ...")
|
||||
self.maxDelay = 2
|
||||
else:
|
||||
# Don't translate this; avoid loading django on portal side.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue