You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 19, 2025. It is now read-only.
HARM will need some kind of background process manager to manage multiple servers cleanly, to ensure we can manipulate processes without creating zombies while still being able to manage them programatically (via the API).
Start a server: curl -XPOST localhost:8080/servers/<id>/start
Stop a server: curl -XPOST localhost:8080/servers/<id>/stop
Check a server's status: curl localhost:8080/servers/<id>/status
Restart a server: curl -XPOST localhost:8080/servers/<id>/restart
Get logs for a server (for all time, newest first): curl localhost:8080/servers/<id>/logs?since=0&sort=desc
These'll get wrapped in a CLI and SDK that can be used to build other stuff (like a Tauri desktop app, some kind of web UI, or a Discord bot). Each of these needs to start a binary from a specific directory on the host (the Reforger Server install directory which we already grab in the existing start endpoint), while not caring where the API itself is running.
HARM will need some kind of background process manager to manage multiple servers cleanly, to ensure we can manipulate processes without creating zombies while still being able to manage them programatically (via the API).
Requirements:
Examples:
curl -XPOST localhost:8080/servers/<id>/startcurl -XPOST localhost:8080/servers/<id>/stopcurl localhost:8080/servers/<id>/statuscurl -XPOST localhost:8080/servers/<id>/restartcurl localhost:8080/servers/<id>/logs?since=0&sort=descThese'll get wrapped in a CLI and SDK that can be used to build other stuff (like a Tauri desktop app, some kind of web UI, or a Discord bot). Each of these needs to start a binary from a specific directory on the host (the Reforger Server install directory which we already grab in the existing start endpoint), while not caring where the API itself is running.
This'll be... an annoying problem to solve lol