Commit Graph

15981 Commits

Author SHA1 Message Date
Yehonal
de98f42411 feat(Service Manager): add service registry custom dir and restore functionality (#22589)
This pull request introduces significant enhancements to the service management system by adding a service registry with features like automatic tracking, reboot persistence, and restoration of missing services. 

The goal of this PR is to allow the user to store the service configuration files into an arbitrary directory, in this way they can be easily tracked, versioned, and replicated across different environments

It also includes a migration script to transition from the legacy service configuration format to the new registry-based system. Below is a summary of the most important changes:

### Service Registry and Management Enhancements:
1. **Service Registry Integration**:
   - Added a comprehensive service registry system to track all created services, enabling features like cross-reboot persistence and restoration of missing services (`apps/startup-scripts/src/service-manager.sh`). [[1]](diffhunk://#diff-31edfed7f73d0647a5fc96ce74c249e025e884cd1fe06621cb78eb4a381464f9R41-R229) [[2]](diffhunk://#diff-31edfed7f73d0647a5fc96ce74c249e025e884cd1fe06621cb78eb4a381464f9R273)
   - Introduced commands for managing the registry, such as `restore` for recreating missing services and `list` for viewing registered services. [[1]](diffhunk://#diff-31edfed7f73d0647a5fc96ce74c249e025e884cd1fe06621cb78eb4a381464f9R273) [[2]](diffhunk://#diff-31edfed7f73d0647a5fc96ce74c249e025e884cd1fe06621cb78eb4a381464f9R332-R334) [[3]](diffhunk://#diff-31edfed7f73d0647a5fc96ce74c249e025e884cd1fe06621cb78eb4a381464f9R346-L172)

2. **PM2 Persistence**:
   - Enhanced PM2 integration to automatically configure startup persistence across reboots using `pm2 startup` and `pm2 save` after service creation.

### Migration and Compatibility:
3. **Migration Script**:
   - Added a `migrate-registry.sh` script to convert legacy service configurations into the new registry format. It ensures compatibility while preserving existing service information (`apps/startup-scripts/src/migrate-registry.sh`).

### Documentation Updates:
4. **Updated README**:
   - Expanded documentation in `README.md` to explain the new service registry features, including usage examples, custom configuration directories, and migration instructions. [[1]](diffhunk://#diff-0917b2888cc9b16539173f318b77773d08f7bf360579b68b9710a96ca2bcbb64L387-R468) [[2]](diffhunk://#diff-0917b2888cc9b16539173f318b77773d08f7bf360579b68b9710a96ca2bcbb64R613-R626)

### Configuration Improvements:
5. **Custom Configuration Directories**:
   - Added support for overriding the default configuration directory for service registry and files using the `AC_SERVICE_CONFIG_DIR` environment variable. [[1]](diffhunk://#diff-31edfed7f73d0647a5fc96ce74c249e025e884cd1fe06621cb78eb4a381464f9L14-R15) [[2]](diffhunk://#diff-31edfed7f73d0647a5fc96ce74c249e025e884cd1fe06621cb78eb4a381464f9R346-L172)

These changes significantly improve the usability, reliability, and maintainability of the service management system, especially for setups requiring persistence and multi-project configurations.
2025-08-25 20:25:17 +02:00
github-actions[bot]
846efc3b64 chore(DB): import pending files
Referenced commit(s): f02af61358
2025-08-25 17:22:38 +00:00
sudlud
f02af61358 fix(DB/SAI): fix dark portal creatures calling for help on aggro (#22730) 2025-08-25 19:21:33 +02:00
github-actions[bot]
d22d5ae40c chore(DB): import pending files
Referenced commit(s): 2e614069a5
2025-08-25 15:33:46 +00:00
sudlud
ddf0997c55 fix(DB/SAI): set dark portal event creatures active (#22724) 2025-08-25 12:33:43 -03:00
sudlud
2e614069a5 fix(Entities/Creature): do not touch setActive() state in setDeathSta… (#22729)
Co-authored-by: Takenbacon <revoke1336@live.com>
2025-08-25 12:32:35 -03:00
github-actions[bot]
8a340b1efb chore(DB): import pending files
Referenced commit(s): cd9bdf7a66
2025-08-25 14:53:13 +00:00
Andrew
cd9bdf7a66 fix(DB/Conditions): Everfrost Chip should require atleast friendly Sons of Hodir standing (#22718) 2025-08-25 11:52:07 -03:00
Benjamin Jackson
9ed31bd63e refactor(Core/Packets): Rewrite various query packets to modern class. (#22719) 2025-08-24 14:50:16 +02:00
github-actions[bot]
915b39202a chore(DB): import pending files
Referenced commit(s): a1eb3e5cec
2025-08-24 05:41:39 +00:00
sudlud
a1eb3e5cec fix(DB/SAI): fix event_type of Pit Commander SAI entry (#22723) 2025-08-24 07:40:37 +02:00
sudlud
2a73b89f6a fix(CI/modules-build): disable archived / outdated module mod-war-effort (#22722) 2025-08-23 16:05:17 -03:00
Andrew
3bdcd83f4a fix(Scripts/Spells): Fix Death and Decay interrupting spellcasting (#22720) 2025-08-23 09:39:32 +02:00
github-actions[bot]
efd7a00630 chore(DB): import pending files
Referenced commit(s): fc90e30e50
2025-08-23 05:12:05 +00:00
Benjamin Jackson
fc90e30e50 fix(DB): Add spawns/events for Ahn'Qiraj War Effort event. (#22497) 2025-08-23 07:11:03 +02:00
Andrew
82d98f9fb7 chore(Core/Player): Change player setting index type from uint8 to ui… (#22716) 2025-08-22 22:25:15 -03:00
Andrew
c67d4efa4a fix(Core/DB): Update connection type for character settings select (#22712) 2025-08-22 10:26:35 +02:00
SAS2000
9d82ae97ae fix(SERVER/Main): Implementation for version param (#22707) 2025-08-21 19:13:04 +02:00
iThorgrim
413178662a fix(Core/SAI): GameObject smart_script based on GUID (#22710) 2025-08-20 19:31:00 -03:00
Benjamin Jackson
d4713356a0 refactor(Core/Packets): Rewrite MSG_MINIMAP_PING to modern packet class. (#22696) 2025-08-19 21:51:06 +02:00
Andrew
e0f2ec41ef fix(Scripts/Commands): Allow using debug LFG and BG from console (#22705) 2025-08-19 17:59:57 +02:00
天鹭
2602add0fd refactor(Core): Improve readability (#22691) 2025-08-19 15:03:03 +02:00
github-actions[bot]
a19dc17cc5 chore(DB): import pending files
Referenced commit(s): 0f08b6e8ab
2025-08-19 12:06:59 +00:00
Rocco Silipo
0f08b6e8ab fix(DB/Creature) Resolve Return of the High Chief quest issues. (#22695) 2025-08-19 09:05:57 -03:00
Takenbacon
e3505df99f fix(Core/Visibility): Fix visibility crash (#22704) 2025-08-19 06:14:08 +02:00
Yehonal
2ae1dbeab2 feat(core): add standalone functions for player settings (#22703) 2025-08-18 22:29:34 -03:00
github-actions[bot]
f41fb5a169 chore(DB): import pending files
Referenced commit(s): 7a9f430935
2025-08-18 19:05:07 +00:00
Benjamin Jackson
7a9f430935 fix(Scripts/SunwellPlateau): Remove Kil'jaeden's debuffs from Shield of the Blue effects. (#22687) 2025-08-18 16:04:06 -03:00
github-actions[bot]
36f04acdd5 chore(DB): import pending files
Referenced commit(s): 1a019f967d
2025-08-18 15:33:47 +00:00
Benjamin Jackson
1a019f967d fix(DB/Creature): Add more spawns for Isle of Quel'Danas harbor quest credit creatures. (#22698) 2025-08-18 12:32:43 -03:00
github-actions[bot]
1878efda1e chore(DB): import pending files
Referenced commit(s): 3e36b35a15
2025-08-14 11:59:36 +00:00
Christian M
3e36b35a15 fix(DB/SAI): Some Azjob-Nerub spell fixes (#22603) 2025-08-14 08:58:36 -03:00
github-actions[bot]
8bffcab5cf chore(DB): import pending files
Referenced commit(s): 2877502fb3
2025-08-13 11:36:33 +00:00
v-mstrs
2877502fb3 fix(DB/Spell): Allow Poison Bolt to stack (#22668) 2025-08-13 08:35:27 -03:00
sudlud
5ad345a873 fix(Conf/Logs): fix Error appender log level, enable sql.updates error logging (#22682) 2025-08-13 08:48:22 +02:00
github-actions[bot]
55a8e85145 chore(DB): import pending files
Referenced commit(s): d917eec261
2025-08-12 22:10:39 +00:00
v-mstrs
d917eec261 fix(DB/Spell): Allow Sunder Armor to stack (#22669) 2025-08-12 19:09:37 -03:00
Rocco Silipo
58504b8a36 Fix Error (#22681) 2025-08-12 20:54:09 +02:00
Andrew
5369aec3c9 fix(Core/SAI): Force SMC creatures to resume chasing victims once in… (#22581) 2025-08-12 14:31:08 -03:00
EricksOliveira
743b6e7cd9 fix(Scripts/Pet): Fixes behavior of Army of the Dead Ghouls to attack… (#22665) 2025-08-12 13:10:20 -03:00
github-actions[bot]
9efdd9798f chore(DB): import pending files
Referenced commit(s): 2e07a0fe1f
2025-08-12 12:24:27 +00:00
Rocco Silipo
2e07a0fe1f fix(DB/SAI): Fezzix Geartwist now flies correctly and the wreckages despawn. (#22674) 2025-08-12 09:23:25 -03:00
Takenbacon
12bee97df9 fix(Core/Visibility): Fix initial visibility on player reused sessions (#22673) 2025-08-11 19:07:00 +02:00
EricksOliveira
1d70c6acc3 fix(Scripts/Pet): Fix Risen Ghoul behavior that does not automaticall… (#22546) 2025-08-10 22:18:53 +02:00
Takenbacon
2450237b7d fix(Core/Maps): Improve large object updater (#22659) 2025-08-10 21:16:04 +02:00
Takenbacon
2485ff7f5f fix(Core/Transports): Improve static transport visibility (#22660) 2025-08-10 21:15:55 +02:00
github-actions[bot]
ba1fcf2424 chore(DB): import pending files
Referenced commit(s): 5b36ba898e
2025-08-10 19:08:00 +00:00
Christian M
5b36ba898e fix(DB/creature_loot): Remove wotlk skinning items from creature loot tables (#22645) 2025-08-10 21:06:57 +02:00
github-actions[bot]
72d3db08e5 chore(DB): import pending files
Referenced commit(s): 468457a63e
2025-08-10 14:19:02 +00:00
Rocco Silipo
468457a63e fix(DB/Creature): En'kilah Gargoyles fly well again. (#22658) 2025-08-10 16:12:46 +02:00