This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Lumbridge Compute resident Scene supervisor, gateway, and telemetry collector
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=HOME=%h
|
||||
Environment=LUMBRIDGE_COMPUTE_ROOT=%h/lumbridge-prod/compute
|
||||
ExecStart=%h/lumbridge-prod/target/release/lumbridge-compute agent --listen 127.0.0.1:8011 --upstream 127.0.0.1:8001 --floor 3 --metrics-url http://127.0.0.1:8001/metrics --metrics-model auto --telemetry-interval-sec 5
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
# Model process groups are lifecycle-owned by Compute and must survive an agent
|
||||
# binary restart; the new agent revalidates boot id, PID, and process start time.
|
||||
KillMode=process
|
||||
TimeoutStopSec=15
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Lumbridge Compute resident Scene supervisor and model gateway
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=lumbridge
|
||||
Environment=HOME=/var/lib/lumbridge
|
||||
Environment=LUMBRIDGE_COMPUTE_ROOT=$LUMBRIDGE_COMPUTE_ROOT
|
||||
ExecStart=/usr/local/bin/lumbridge-compute agent --listen 127.0.0.1:8011 --upstream 127.0.0.1:8001 --floor 3
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
# Model process groups are lifecycle-owned by Compute and must survive an agent
|
||||
# binary restart; the agent will revalidate their boot/start identities on resume.
|
||||
KillMode=process
|
||||
TimeoutStopSec=15
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user