You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
codeskyblue cc06b2e1a3
add equinox self update support
8 years ago
Godeps add equinox self update support 8 years ago
res add equinox self update support 8 years ago
vendor/github.com add equinox self update support 8 years ago
.fsw.yml finish sub commands 8 years ago
.gitignore use tango instead mux 9 years ago
.gopack.yml add gosuv remove support 8 years ago
.travis.yml update readme 8 years ago
LICENSE Initial commit 9 years ago
README.md update readme 8 years ago
broadcast.go use ring buffer instead of bytes.Buffer 8 years ago
broadcast_test.go log is ok to see in the web 8 years ago
build.sh finish sub commands 8 years ago
equinox.pub add equinox self update support 8 years ago
fsm.go finish sub commands 8 years ago
gosuv.go add equinox self update support 8 years ago
proctrl.go add retry wait state 8 years ago
utils.go ok to save setting to file 8 years ago
web.go finish sub commands 8 years ago

README.md

gosuv

Build Status

Program not implement

Not done yet.

golang port of python-supervisor

Features

  • Realtime log view
  • Github webhook
  • Web control page

Requirements

Go version at least 1.5+

Installation

go get -v github.com/codeskyblue/gosuv

Usage

$ gosuv status
NAME		STATUS
timetest	running
$ gosuv help
...

Configuration

Default config file stored in directory $HOME/.gosuv/

Design

Get or Update program

<GET|PUT> /api/programs/:name

Add new program

POST /api/programs

Del program

DELETE /api/programs/:name

State

Only 4 states. ref

states

Plugin Design (todo)

Current plugins:

All command plugin will store in $HOME/.gosuv/cmdplugin, gosuv will treat this plugin as a subcommand.

for example:

$HOME/.gosuv/cmdplugin/ --.
	|- showpid/
		|- run

There is a directory showpid

When run gosuv showpid, file run will be called.

Use libs

LICENSE

MIT