Process management writtern by golang, inspired by python-supervisor
I have been using python-supervisor for many years and there are something uncomfortable feelings.
supervisorctl reload
will cause supervisord restartedWeb control page
HTTP Basic auth
Github webhook
Single log page, include search support
中文文档
Go version at least 1.6+
Standalone binary can be download from one of the following addresses
Branch | Source | Address |
---|---|---|
latest | equinox | https://dl.equinox.io/shengxiang/gosuv/stable |
stable | github | https://github.com/codeskyblue/gosuv/releases/latest |
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
After you installed gosuv, the first thing is to start server.
gosuv start-server
Show server status
$ gosuv status
Server is running
Open web http://localhost:11313 to see the manager page. And follow the gif to add a program to gosuv.
Default config file stored in directory $HOME/.gosuv/
, Set env-var GOSUV_HOME_DIR
can change config file store directory.
programs.yml
contains all program settings.config.yml
contains server configFile config.yml
can be generated by gosuv conftest
Example config.yaml
server:
httpauth:
enabled: false
username: uu
password: pp
addr: :11313
client:
server_url: http://localhost:11313
Logs can be found in $HOME/.gosuv/log/
Edit config file(default located in $HOME/.gosuv/programs.yml
) and run gosuv reload
will take effect immediately.
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
Only 4 states. ref
Configuration example
- demo-program:
command: ...
notifications:
pushover:
api_key: [token]
users:
- [user1]
- [user2]
Now only support pushover, and only status change to fatal will get notified.
This is feature that will helps update your deployment environment once your updated in the github.
This part is set in the programs.yml
, take look the example
- demo-program:
command: python app.py
directory: /opt/demo
webhook:
github:
secret: 123456
command: git pull origin master
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Комментарии ( 0 )