From bffd01f93a96add41db4c5d3edc7eec9c2100add Mon Sep 17 00:00:00 2001 From: nyyu Date: Tue, 26 Dec 2023 09:46:28 +0100 Subject: [PATCH] fix(wp): agent state --- woodpecker/agent.conf | 1 + woodpecker/woodpecker-agent.service | 1 + 2 files changed, 2 insertions(+) diff --git a/woodpecker/agent.conf b/woodpecker/agent.conf index 4d03c11..fa09e14 100644 --- a/woodpecker/agent.conf +++ b/woodpecker/agent.conf @@ -1,6 +1,7 @@ # agent configuration WOODPECKER_SERVER=localhost:9992 +WOODPECKER_AGENT_CONFIG_FILE=/var/lib/woodpecker-agent/agent.conf WOODPECKER_AGENT_SECRET="" WOODPECKER_HEALTHCHECK=false # WOODPECKER_MAX_WORKFLOWS=4 diff --git a/woodpecker/woodpecker-agent.service b/woodpecker/woodpecker-agent.service index d6b8193..dcc1a40 100644 --- a/woodpecker/woodpecker-agent.service +++ b/woodpecker/woodpecker-agent.service @@ -15,6 +15,7 @@ KillSignal=SIGINT LimitNOFILE=8192 PrivateDevices=yes DynamicUser=yes +StateDirectory=woodpecker-agent ReadWritePaths=/var/run/docker.sock [Install]