fix(grid-agent): move setup into YAML preferences (#135)
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
# Values here are paths and non-secret mode settings only. Never put secret
|
||||
# values in this file. Create every referenced file as mode 0600, owned by the
|
||||
# metacrate-agent service identity.
|
||||
METACRATE_AGENT_LLM_API_KEY_FILE=/etc/metacrate/secrets/llm-api-key
|
||||
METACRATE_AGENT_GRID_PASSWORD_FILE=/etc/metacrate/secrets/grid-password
|
||||
METACRATE_AGENT_CONTROL_OPERATOR_TOKEN_FILE=/etc/metacrate/secrets/control-operator-token
|
||||
METACRATE_AGENT_STORAGE_PATH=/var/lib/metacrate/grid-agent
|
||||
@@ -8,9 +8,8 @@ After=network-online.target
|
||||
Type=simple
|
||||
User=metacrate-agent
|
||||
Group=metacrate-agent
|
||||
EnvironmentFile=-/etc/metacrate/grid-agent.env
|
||||
ExecStartPre=/usr/local/bin/metacrate-grid-agent --config /etc/metacrate/grid-agent.json --check-config
|
||||
ExecStart=/usr/local/bin/metacrate-grid-agent --config /etc/metacrate/grid-agent.json
|
||||
ExecStartPre=/usr/local/bin/metacrate-grid-agent --config /etc/metacrate/config.yml --check-config
|
||||
ExecStart=/usr/local/bin/metacrate-grid-agent --config /etc/metacrate/config.yml
|
||||
KillSignal=SIGINT
|
||||
TimeoutStopSec=30s
|
||||
Restart=on-failure
|
||||
|
||||
Reference in New Issue
Block a user