2022-11-14 20:24:47 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Woodpecker agent
|
|
|
|
Requires=network-online.target
|
2023-03-18 19:50:18 +01:00
|
|
|
After=network-online.target woodpecker-server.service docker.service
|
2022-11-14 20:24:47 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=woodpecker-agent
|
|
|
|
Group=docker
|
|
|
|
Type=simple
|
|
|
|
EnvironmentFile=/etc/woodpecker/agent
|
|
|
|
ExecStart=/usr/bin/woodpecker-agent
|
|
|
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
|
|
|
Restart=on-failure
|
|
|
|
KillSignal=SIGINT
|
|
|
|
LimitNOFILE=8192
|
|
|
|
PrivateDevices=yes
|
|
|
|
DynamicUser=yes
|
2023-12-26 09:46:28 +01:00
|
|
|
StateDirectory=woodpecker-agent
|
2022-11-14 20:24:47 +01:00
|
|
|
ReadWritePaths=/var/run/docker.sock
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|