Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Server Process Management & IPC #1

Description

@hbjydev

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:

  • 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.

This'll be... an annoying problem to solve lol

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions