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 554bba9ff1
update readme
8 years ago
Godeps add equinox self update support 8 years ago
docs update readme 8 years ago
res update readme 8 years ago
vendor/github.com add equinox self update support 8 years ago
.fsw.yml update self [[DDsupport channel 8 years ago
.gitignore update readme 8 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 not close ch, because send data to closed channel will panic 8 years ago
broadcast_test.go log is ok to see in the web 8 years ago
build.sh update self [[DDsupport channel 8 years ago
equinox.pub add equinox self update support 8 years ago
fsm.go finish sub commands 8 years ago
gosuv.go update readme 8 years ago
proctrl.go add retry wait state 8 years ago
res.go update readme 8 years ago
res_bindata.go update readme 8 years ago
res_nobindata.go update readme 8 years ago
utils.go ok to save setting to file 8 years ago
web.go update readme 8 years ago

README.md

gosuv

Build Status

Program not implement

Process managerment writtern by golang, inspired by python-supervisor

Features

  • Realtime log view
  • Web control page
  • Github webhook
  • 中文文档

Requirements

Go version at least 1.6+

Installation

Binary can be download from https://dl.equinox.io/shengxiang/gosuv/stable

Or if you have go enviroment, you can also build from source.

go get -d github.com/codeskyblue/gosuv
cd $GOPATH/src/github.com/codeskyblue/gosuv
go build

If you want to build a standalone binary, run the following command.

go get github.com/elazarl/go-bindata-assetfs/...
go-bindata-assetfs -tags bindata res/...
go build -tags bindata

Usage

Start server in the background

gosuv start-server

Show server status

$ gosuv status
Server is running

Configuration

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

Design

HTTP is follow the RESTFul guide.

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