Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

foreman clone written in go language

License

NotificationsYou must be signed in to change notification settings

mattn/goreman

Repository files navigation

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 theProcfile and display their outputs.Any signals are forwarded to each process.

Example

See_example directory

License

MIT

Design

The main goroutine loadsProcfile 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 ofSIGINT,SIGTERM, andSIGHUP;
  2. It receives an RPC call, which is triggered by the commandgoreman run COMMAND [PROCESS...].

design

Authors

Yasuhiro Matsumoto (a.k.a mattn)


[8]ページ先頭

©2009-2025 Movatter.jp