Initial commit (code only without large binaries)

This commit is contained in:
robin
2026-02-15 18:58:44 +08:00
commit 35df75498f
9442 changed files with 1495866 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package nodeconfigs
type (
SystemServiceType = string
)
const (
// TODO 需要支持supervisor等常用daemon管理工具
SystemServiceTypeSystemd SystemServiceType = "systemd"
)
// Systemd配置
type SystemdServiceConfig struct {
IsOn bool `yaml:"isOn" json:"isOn"` // 是否启用
Provides string `yaml:"provides" json:"provides"` // 提供者,可以是服务名
ShortDescription string `yaml:"shortDescription" json:"shortDescription"` // 短描述
Description string `yaml:"description" json:"description"` // 长描述
ExecPath string `yaml:"execPath" json:"execPath"` // 可执行文件的路径
}