24 lines
882 B
Markdown
24 lines
882 B
Markdown
`metin-login-healthcheck.sh` is a root-only operational check for the Debian VPS.
|
|
|
|
What it does:
|
|
- creates a temporary account in MariaDB
|
|
- runs `metin_login_smoke` against auth and channel ports
|
|
- verifies `AUTH_SUCCESS`, `EMPIRE`, `LOGIN_SUCCESS4`, character select, and `ENTERGAME`
|
|
- creates a temporary character when the temporary account is empty
|
|
- deletes the temporary account and temporary character rows on exit
|
|
- passes the expected client version string to the smoke client
|
|
|
|
Default paths and ports are tuned for the current VPS layout. Override with env vars if needed:
|
|
- `RUN_AS_USER`
|
|
- `SERVER_HOST`
|
|
- `AUTH_PORT`
|
|
- `CHANNEL_PORT`
|
|
- `SMOKE_BIN`
|
|
|
|
For richer ad-hoc testing, call `metin_login_smoke` directly. It now supports:
|
|
- `--json`
|
|
- `--expect-auth-failure=STATUS`
|
|
- `--expect-channel-failure=STATUS`
|
|
- `--create-character-name=NAME`
|
|
- `--client-version=VERSION`
|