fix: expand agent environment in systemd service

This commit is contained in:
kory
2026-10-02 17:20:22 +08:00
parent f084ac5bae
commit ea7b47c955
+1 -1
View File
@@ -138,7 +138,7 @@ Type=simple
User=root User=root
WorkingDirectory=${INSTALL_DIR} WorkingDirectory=${INSTALL_DIR}
EnvironmentFile=-${CONF_DIR}/agent.env EnvironmentFile=-${CONF_DIR}/agent.env
ExecStart=${INSTALL_DIR}/vps-commander-agent -hub \${VPS_COMMANDER_HUB_WS_URL} -name \${VPS_COMMANDER_AGENT_NAME} ExecStart=/bin/sh -c 'exec ${INSTALL_DIR}/vps-commander-agent -hub "$VPS_COMMANDER_HUB_WS_URL" -name "$VPS_COMMANDER_AGENT_NAME"'
Restart=always Restart=always
RestartSec=3s RestartSec=3s
KillSignal=SIGTERM KillSignal=SIGTERM