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
李光春 a7e1ae8157
update build
2 years ago
docs update 2 years ago
gops update .gitignore 6 years ago
hipchat add hipchat lib 8 years ago
pushover add pushover, it seems blocked in china 8 years ago
res update 2 years ago
vendor update 2 years ago
LICENSE Initial commit 9 years ago
README.md update 2 years ago
assets_dev.go update 2 years ago
assets_generate.go update 2 years ago
broadcast.go 修复log 2 years ago
broadcast_test.go update 2 years ago
build_remote.sh update .gitignore 6 years ago
build_standalone.sh update .gitignore 6 years ago
cmds.go update 2 years ago
config.go update 2 years ago
fsm.go 修复log 2 years ago
fsm_test.go update .gitignore 6 years ago
get.sh update 2 years ago
go.mod update 2 years ago
go.sum update 2 years ago
gomod.sh update 2 years ago
gosuv.go 修复log 2 years ago
rice update 2 years ago
rice-box.go update 2 years ago
sigchld_unix.go loop reaping dead children 7 years ago
utils.go 修复log 2 years ago
web.go 修复log 2 years ago

README.md

概述

GoSuv是GO语言重写的类supervisor的一个进程管理程序codeskyblue/gosuv基础上增加了环境变量的配置以及主机名称的配置等用rice封装对静态文件进行了封装单文件运行简单易用界面美感十足且对用户友好

特点

  • web 控制与配置页面
    • 启动, 停止, 日志跟踪, 重载配置
    • 实时查看日志
    • 添加服务
    • 编辑服务
    • 删除服务
    • 可视化查看服务对应的cpu与内存
  • HTTP 基本安全认证
  • Github webhook

使用

  • 启动服务

    gosuv start-server
    

查看服务状态

$ gosuv status
PROGRAM NAME            STATUS
test                    running
test_again              stopped

$ gosuv stop test
$ gosuv start test

默认端口 11113 本机测试请使用http://localhost:11313

例子

配置

默认配置文件都放在 $HOME/.gosuv/

  • 项目文件名 programs.yml
  • 服务器配置文件名: config.yml

验证信息配置

server:
    servername: locllhost
    httpauth:
      enabled: false
      username: uu
      password: pp
      addr: :11313
client:
  server_url: http://localhost:11313

默认日志文件位置

$HOME/.gosuv/log/

http RESTFul 接口

获取或更新

<GET|PUT> /api/programs/:name

添加新的服务

POST /api/programs

删除服务

DELETE /api/programs/:name

待续

内容不是很多,还是推荐能看懂英语的去看英文的README

贡献人