L2JMobius

C6 Scheduled Server Restart is not working properly

krzdev · 4 · 4865

Offline krzdev

  • Vassal
  • *
    • Posts: 5

Restart only works for the last value in this configuration (00:00)
the others (06:00, 12:00, 17:50) never happen.

Code: [Select]
# ---------------------------------------------------------------------------
# Scheduled Server Restart
# ---------------------------------------------------------------------------

# Enable scheduled server restart.
# Default: False
ServerRestartScheduleEnabled = True

# Send a message when player enters the game.
# Default: False
ServerRestartScheduleMessage = False

# Restart time countdown (in seconds).
# Default: 600 (10 minutes)
ServerRestartScheduleCountdown = 300

# Scheduled restart schedule.
# You can put more than one value separated by commas (,).
# Example: 12:00, 00:00
ServerRestartSchedule = 06:00, 12:00, 17:50, 00:00

# Specify days that the restart will occur. Values separated by commas (,).
# Example: 1,2,3,4,5,6,7 (SUNDAY,MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY)
# Default: 4 (WEDNESDAY)
ServerRestartDays = 1,2,3,4,5,6,7


Offline ver

  • Knight
  • ***
    • Posts: 70
Try to set it that way:

ServerRestartSchedule = 06:00,12:00,17:50,00:00


Offline krzdev

  • Vassal
  • *
    • Posts: 5

Offline ver

  • Knight
  • ***
    • Posts: 70
Yea, something ain't right there. However in my case it worked differently :)

I had this in my settings

Code: [Select]
# Restart time countdown (in seconds).
# Default: 600 (10 minutes)
ServerRestartScheduleCountdown = 15

# Scheduled restart schedule.
# You can put more than one value separated by commas (,).
# Example: 12:00, 00:00
ServerRestartSchedule = 20:45, 20:47

# Specify days that the restart will occur. Values separated by commas (,).
# Example: 1,2,3,4,5,6,7 (SUNDAY,MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY)
# Default: 4 (WEDNESDAY)
ServerRestartDays = 1,2,3,4,5,6,7


Server has started at 20:43 with message:
[23/03 20:43:08] Scheduled server restart at Wed Mar 23 20:47:00 CET 2022.

However:
[23/03 20:44:45] Server issued shutdown command. SIGTERM in 15 seconds!
...
[23/03 20:45:05] All database data committed.
[23/03 20:45:05] [STATUS] Server shutdown successfully.

After start:
[23/03 20:45:30] Scheduled server restart at Thu Mar 24 20:47:00 CET 2022.


Again 20:47, but next day... This one was skipped.