mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
fix corrosion data dir, add reload to systemd unit
This commit is contained in:
@@ -53,7 +53,7 @@ func (c *Config) SetDefaults() *Config {
|
||||
cfg.APISockPath = DefaultAPISockPath
|
||||
}
|
||||
if cfg.CorrosionDir == "" {
|
||||
cfg.CorrosionDir = filepath.Join(cfg.DataDir, "corroservice")
|
||||
cfg.CorrosionDir = filepath.Join(cfg.DataDir, "corrosion")
|
||||
}
|
||||
if !cfg.CorrosionAPIListenAddr.IsValid() {
|
||||
cfg.CorrosionAPIListenAddr = netip.AddrPortFrom(
|
||||
|
||||
@@ -183,6 +183,7 @@ Requires=uncloud.service
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=${INSTALL_BIN_DIR}/uncloud-corrosion agent -c ${UNCLOUD_DATA_DIR}/corrosion/config.toml
|
||||
ExecReload=${INSTALL_BIN_DIR}/uncloud-corrosion reload -c ${UNCLOUD_DATA_DIR}/corrosion/config.toml
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
User=${UNCLOUD_USER}
|
||||
|
||||
Reference in New Issue
Block a user