Reworked server reboot code to make the cold reset function work as documented and not disconnect any sessions. Resolves #742.

This commit is contained in:
Griatch 2015-05-14 20:18:39 +02:00
parent 3410499313
commit 33154d4d60
2 changed files with 31 additions and 19 deletions

View file

@ -65,10 +65,18 @@ class CmdReset(MuxCommand):
Usage:
@reset
A cold reboot. This works like a mixture of @reload and @shutdown,
- all shutdown hooks will be called and non-persistent scripts will
be purged. But the Portal will not be affected and the server will
automatically restart again.
Notes:
For normal updating you are recommended to use @reload rather
than this command. Use @shutdown for a complete stop of
everything.
This emulates a cold reboot of the Server component of Evennia.
The difference to @shutdown is that the Server will auto-reboot
and that it does not affect the Portal, so no users will be
disconnected. Contrary to @reload however, all shutdown hooks will
be called and any non-database saved scripts, ndb-attributes,
cmdsets etc will be wiped.
"""
key = "@reset"
aliases = ['@reboot']