#!/usr/bin/env bash # LXC agentd-01 cron entry (*/2, root): one agentd tick under server-access exec (Plane tokens only in the # process env), with a lock. The outer flock skips a tick while the previous one still runs; agentd also holds # its own state lock. Logs: /var/log/plane-agentd/{agentd.log,cron.log}; state: /var/lib/plane-agentd. exec flock -n /var/lib/plane-agentd/cron.lock \ timeout 900 python3 -I /root/.local/share/server-access-client/agent-access.py \ --config https://nas.tail9531b.ts.net:8443/identity/agent.json exec \ --secret-env PLANE_OREGON_API_TOKEN=PLANE_OREGON_API_TOKEN \ --secret-env PLANE_WINDOW10_API_TOKEN=PLANE_WINDOW10_API_TOKEN --timeout 850 -- \ python3 /opt/plane-agentd/cli/agentd --config /opt/plane-agentd/config/agentd.yaml \ tick --once >> /var/log/plane-agentd/cron.log 2>&1