Skip to content

mattn/goreman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 26, 2024
2848c45 · Nov 26, 2024
Nov 26, 2024
Apr 29, 2022
Jul 6, 2020
Jul 11, 2022
Sep 30, 2018
Mar 18, 2023
Dec 1, 2021
Jul 11, 2022
Nov 26, 2024
Nov 26, 2024
Jul 11, 2022
Sep 6, 2019
Nov 26, 2024
Jan 25, 2022
Apr 29, 2022
Sep 6, 2019
Sep 6, 2019

Repository files navigation

Goreman

Clone of foreman written in golang.

https://github.com/ddollar/foreman

Getting Started

go install github.com/mattn/goreman@latest

Usage

goreman start

Will start all commands defined in the Procfile and display their outputs. Any signals are forwarded to each process.

Example

See _example directory

License

MIT

Design

The main goroutine loads Procfile and starts each command in the file. Afterwards, it is driven by the following two kinds of events, and then take proper action against the managed processes.

  1. It receives a signal, which could be one of SIGINT, SIGTERM, and SIGHUP;
  2. It receives an RPC call, which is triggered by the command goreman run COMMAND [PROCESS...].

design

Authors

Yasuhiro Matsumoto (a.k.a mattn)