PlaneShift

  • Status Closed
  • Percent Complete
    100%
  • Task Type Feature Request
  • Category
  • Assigned To
    weltall
  • Operating System
  • Severity Medium
  • Priority
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: PlaneShift
Opened by Mike Gist - 10.07.2008
Last edited by Mike Gist - 28.07.2008

FS#1912 - Server Console delayed shutdown.

A nice feature would be for the server console to support a delayed quit.

So:

quit 30

would make the server shut down in 30 min, giving a warning to the players every 5 min, then on 1 min before shutting down.

quit stop

would cancel the shutdown.

quit or quit 0

would be instant.

Closed by  Mike Gist
28.07.2008 13:24
Reason for closing:  
Additional comments about closing:  

- Committed.

weltall commented on 25.07.2008 20:30

This is the implementation of this function.
-it can manage not multiple of 5 quit delays and shows the total time available before shutdown with the first message
-it will show messages about server shut down every 5 minutes (starting counting from server shutdown scheduled time) and when 40, 20 and 0 (server shut down) seconds are remaining
-The quit 0 just like quit will trigger immediately the shutdown (like done before)
-quit stop will invalid the events and so the quit won't be triggered anymore
-the server will be locked with the 5 minutes remaining message and will be put ready if the quit is aborted

http://pastebin.ca/1082906

Steven Schwartfeger commented on 26.07.2008 10:47

I tested this, it worked fine. One thing I might add is a message to clients if the server shutdown is aborted with "quit stop".

weltall commented on 26.07.2008 20:31

As requested by Xordan:
-Now the use of quit, quit 0, quit minutes is locked till the user of the server quits the shutdown with quit stop and will show a message with the remaining minutes and seconds to shutdown.
-(and as suggested by Vornne) The quit stop command sends to users a message telling them that the shutdown process has been aborted

This is the patch with the above changes in the behavior of the function:

http://pastebin.ca/1083737

Steven Schwartfeger commented on 28.07.2008 10:52

Verified the latest version of the patch works as specified.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing