Architect Agent supports a system to execute custom scripts at certain steps during a game servers lifecycle.
These are to be placed in the `lifecycle_hooks` directory:
Windows
File name format: `lifecycle.{hook}.bat`
Linux
File name format: `lifecycle.{hook}.sh`
Multiple lifecycle hook scripts
You can have multiple scripts for each type of hook, by adding a number after the hook event string.
Example:
- lifecycle.pre-start.bat
- lifecycle.pre-start2.bat
Hook Events
Architect supports the following lifecycle hooks:
Hook | Details | Blocking |
pre-start | Executed before each game server start. | Yes |
started | Executed after the game server process has been started. | No |
stopped | Executed after the game server process has exited. | Yes |