Skip to content

Modify runtime directory#73

Open
cqijiex wants to merge 2 commits into
mainfrom
modify-runtime-directory
Open

Modify runtime directory#73
cqijiex wants to merge 2 commits into
mainfrom
modify-runtime-directory

Conversation

@cqijiex
Copy link
Copy Markdown
Collaborator

@cqijiex cqijiex commented Apr 23, 2026

/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/ # 用户配置与凭据(不变)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant