1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 06:26:46 +00:00

feature(worker): use cgroup track job process, so that they can be all-killed

这个提交包含在:
bigeagle
2016-04-29 16:05:15 +08:00
父节点 41e1f263a5
当前提交 924fda6dd8
共有 11 个文件被更改,包括 250 次插入17 次删除

查看文件

@@ -35,6 +35,7 @@ type Config struct {
Global globalConfig `toml:"global"`
Manager managerConfig `toml:"manager"`
Server serverConfig `toml:"server"`
Cgroup cgroupConfig `toml:"cgroup"`
Mirrors []mirrorConfig `toml:"mirrors"`
}
@@ -60,6 +61,12 @@ type serverConfig struct {
SSLKey string `toml:"ssl_key"`
}
type cgroupConfig struct {
Enable bool `toml:"enable"`
BasePath string `toml:"base_path"`
Group string `toml:"group"`
}
type mirrorConfig struct {
Name string `toml:"name"`
Provider ProviderEnum `toml:"provider"`