azerothcore / azerothcore/mod-server-auto-shutdown
Feature: Change exit code to RESTART_EXIT_CODE
- Dominant language
- C++
- Stars
- 18
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
### Describe your feature request or suggestion in detail
Change exit code to RESTART_EXIT_CODE to distinguish from a manual shutdown so that a script can do maintenance and restart the server or allow for a manual exit
### Describe a possible solution to your feature or suggestion in detail
current: sWorld->ShutdownServ(preAnnounceSeconds, SHUTDOWN_MASK_RESTART, SHUTDOWN_EXIT_CODE);
proposed: sWorld->ShutdownServ(preAnnounceSeconds, SHUTDOWN_MASK_RESTART, RESTART_EXIT_CODE);
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Search the module for the shown sWorld->ShutdownServ call and for the definitions or usages of RESTART_EXIT_CODE and SHUTDOWN_EXIT_CODE. Confirm that the restart path returns a distinct exit code while manual shutdown behavior remains unchanged, then build the module and run any available checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100