procmon

command
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Procmon

Procmon is a process runner/monitor tool that can start and stop a set of tasks and rerun them if they fail.

What's unique about it compared to things like supervisor is that it lets you define a dependency tree of processes, so that when a parent process dies, its children can be terminated and re-run after the parent has started again.

It's designed to work when run inside a container.

Features

  • Watches long-running tasks to see if they terminate
  • Kills off children if the parent terminates, then restarts in order
  • Flexible idea of additional "behavioral" monitors that can monitor a variety of things (http health, RPC, etc).
  • A monitor reports failure as if the task has died
  • Signal management; shuts everything down on exit
  • Kill off tasks that fail monitoring but are still running
  • Timeouts to force restart if things don't shut down when requested
  • Composable monitors allow making them more sophisticated when desired
  • Redirection of stdout/stderr
  • Logging its own behavior to log files or to honeycomb
  • Use SIGHUP to trigger a special task after shutting down everything (for example, for backup)
  • A task definition language (config) so we don't need to compile the tool when tasks change

Task definition language

The tasks are defined in a TOML file; see sample.toml for an example.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL