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.
codeskyblue
1959118c57
|
8 years ago | |
---|---|---|
Godeps | 8 years ago | |
res | 8 years ago | |
vendor/github.com | 8 years ago | |
.fsw.yml | 8 years ago | |
.gitignore | 9 years ago | |
.gopack.yml | 8 years ago | |
.travis.yml | 8 years ago | |
LICENSE | 9 years ago | |
README.md | 8 years ago | |
broadcast.go | 8 years ago | |
broadcast_test.go | 8 years ago | |
build.sh | 8 years ago | |
equinox.pub | 8 years ago | |
fsm.go | 8 years ago | |
gosuv.go | 8 years ago | |
proctrl.go | 8 years ago | |
utils.go | 8 years ago | |
web.go | 8 years ago |
README.md
gosuv
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
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 -tags bindata
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
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.