Categorygithub.com/lheer/supervisor-go
repositorypackage
0.0.0-20240925151104-bd5a64d7f7dc
Repository: https://github.com/lheer/supervisor-go.git
Documentation: pkg.go.dev

# README

supervisor-go

supervisor-go is an application that allows to control Unix processes. Think of it as a very simplified supervisord. It's configured via a simple TOML file. View the examples folder for configuration examples.

Features

  • Start and monitor Unix processes
  • Restart on failure, max restart limits
  • Execution order: Start a process after another is running or has exited
  • REST API: Get the state of all processes as JSON

Usage

$ supervisor-go -c <path_to_config_file.toml>

REST Interface

Example:

$ curl -s localhost:8080/state | jq
{
  "dont_start": "not_running",
  "fails": "exited",
  "one_shot": "exited",
  "short": "starting",
  "some_daemon": "running"
}