# SPDX-License-Identifier: Apache-2.0
[Unit]
Description=LeanCTX cloud computer agent
After=network-online.target
Wants=network-online.target
[Service]
User=leanctx
Group=leanctx
ExecStart=/usr/local/bin/lean-ctx computer run
Environment=LEANCTX_COMPUTER_CONFIG=/etc/leanctx/computer.json
LoadCredential=enrol.token:/etc/leanctx/enrol.token
LoadCredential=meter.token:/etc/leanctx/meter.token
StateDirectory=leanctx
ReadWritePaths=/var/lib/leanctx
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=read-only
PrivateTmp=yes
CapabilityBoundingSet=
AmbientCapabilities=
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target