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
|
cfg.APISockPath = DefaultAPISockPath
|
||||||
}
|
}
|
||||||
if cfg.CorrosionDir == "" {
|
if cfg.CorrosionDir == "" {
|
||||||
cfg.CorrosionDir = filepath.Join(cfg.DataDir, "corroservice")
|
cfg.CorrosionDir = filepath.Join(cfg.DataDir, "corrosion")
|
||||||
}
|
}
|
||||||
if !cfg.CorrosionAPIListenAddr.IsValid() {
|
if !cfg.CorrosionAPIListenAddr.IsValid() {
|
||||||
cfg.CorrosionAPIListenAddr = netip.AddrPortFrom(
|
cfg.CorrosionAPIListenAddr = netip.AddrPortFrom(
|
||||||
|
|||||||
@@ -183,6 +183,7 @@ Requires=uncloud.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=${INSTALL_BIN_DIR}/uncloud-corrosion agent -c ${UNCLOUD_DATA_DIR}/corrosion/config.toml
|
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
|
Restart=always
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
User=${UNCLOUD_USER}
|
User=${UNCLOUD_USER}
|
||||||
|
|||||||
Reference in New Issue
Block a user