Modify runtime directory#73
Open
cqijiex wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/opt/csghub/
├── embedded/ # 只读 - 不变
│ ├── bin/ # 所有二进制文件
│ ├── lib/ # 共享库
│ ├── sv//templates/ # 服务配置模板(.sample 文件)
│ └── templates/ # gomplate 公共模板(*.tpl)
│
├── service// # SVDIR - 服务运行配置(集中)
│ ├── run # runit 主脚本(不变)
│ ├── log/
│ │ └── run # 日志收集脚本(不变)
│ ├── pre-start # 预启动脚本(不变)
│ ├── supervise/ # runit 自动创建(不变)
│ ├── env/ # 【移入】环境变量,原路径:/opt/csghub/etc//env/
│ └── etc/ # 【新增】渲染后的服务配置,原:渲染到 data 目录
│
├── etc/csghub/ # 仅保留全局配置
│ ├── default.yaml
│ ├── .csghub.yaml
│ └── templates/csghub/
└── bin/ # 全局命令(不变)
/var/opt/csghub// # 数据(不变)
/var/log/csghub// # 日志(不变)
/etc/csghub/ # 用户配置与凭据(不变)