stuart-warren / goreman

foreman clone written in go language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Goreman

Clone of foreman written in golang.

https://github.com/ddollar/foreman

Getting Started

go get github.com/mattn/goreman

Usage

goreman start

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

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 a RPC call, which is triggered by the command "goreman run COMMAND [PROCESS...]".

design

Authors

Yasuhiro Matsumoto (a.k.a mattn)

About

foreman clone written in go language

License:MIT License


Languages

Language:Go 94.4%Language:Makefile 4.7%Language:Ruby 0.7%Language:Perl 0.2%