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.
gosuv/README.md

79 lines
1.4 KiB

9 years ago
# gosuv
9 years ago
[![Build Status](https://travis-ci.org/codeskyblue/gosuv.svg)](https://travis-ci.org/codeskyblue/gosuv)
9 years ago
## Program not implement
**Not done yet.**
8 years ago
golang port of python-supervisor
8 years ago
Features
8 years ago
* [ ] Realtime log view
* [ ] Github webhook
8 years ago
* [ ] Web control page
9 years ago
## Requirements
Go version at least `1.5+`
8 years ago
## 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.
8 years ago
```sh
go get -d github.com/codeskyblue/gosuv
cd $GOPATH/src/github.com/codeskyblue/gosuv
go build -tags bindata
8 years ago
```
9 years ago
## Usage
8 years ago
```sh
$ gosuv status
NAME STATUS
timetest running
$ gosuv help
...
```
8 years ago
## Configuration
Default config file stored in directory `$HOME/.gosuv/`
8 years ago
## Design
### Get or Update program
`<GET|PUT> /api/programs/:name`
8 years ago
### Add new program
`POST /api/programs`
### Del program
`DELETE /api/programs/:name`
## State
9 years ago
Only 4 states. [ref](http://supervisord.org/subprocess.html#process-states)
9 years ago
8 years ago
![states](docs/states.png)
9 years ago
8 years ago
# Plugin Design (todo)
9 years ago
Current plugins:
- [tailf](https://github.com/codeskyblue/gosuv-tailf)
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.
9 years ago
## Use libs
* <https://github.com/ahmetalpbalkan/govvv>
9 years ago
## LICENSE
[MIT](LICENSE)