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.
1.2 KiB
1.2 KiB
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
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
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.