Skip to content

(Alternative restart cycle) Allow setting a fixed weekday for weekly restarts - #24

Merged
Nyeriah merged 5 commits into
azerothcore:masterfrom
Merkerhood:merkerhood
Jun 24, 2025
Merged

(Alternative restart cycle) Allow setting a fixed weekday for weekly restarts#24
Nyeriah merged 5 commits into
azerothcore:masterfrom
Merkerhood:merkerhood

Conversation

@icemansparks

@icemansparks icemansparks commented Jun 1, 2025

Copy link
Copy Markdown
Contributor

With this change, the config offers an alternative setting for enabling weekly restarts on the same recurring weekday instead of restarts every x-days.
I made this change for myself since I wanted to have the weekly restarts/shutdowns on the same day for easier maintenance.

The original usage will still be possible if the weekday setting is kept with the default of -1 (disabled)

…"restart every x days" as an alternative option
disable fixed day restarts as default.
allow setting a fixed day in the week for weekly restarts instead of …
Comment thread src/ServerAutoShutdown.cpp Outdated
refactor ServerAutoShutdown timing functions for clarity and consiste…
@Nyeriah
Nyeriah merged commit 625b145 into azerothcore:master Jun 24, 2025
1 check passed
@kissingers

kissingers commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

I think just use a bitmask where 1 to 7 corresponds to 1, 10, 100, 1000, 10000, 100000, and 1000000 respectively. Then, I can just set the bitmask for the days of the week when I want to restart, which is more flexible.
if all need restart just use btimask 1111111, and use 0 for disable this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants