mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-14 20:46:30 +00:00
20 lines
525 B
SYSTEMD
20 lines
525 B
SYSTEMD
|
[Unit]
|
||
|
Description=WoodpeckerCI agent
|
||
|
Documentation=https://woodpecker-ci.org/docs/administration/agent-config
|
||
|
Requires=network.target
|
||
|
After=network.target
|
||
|
ConditionFileNotEmpty=/etc/woodpecker/woodpecker-agent.env
|
||
|
ConditionPathExists=/etc/woodpecker/woodpecker-agent.env
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
EnvironmentFile=/etc/woodpecker/woodpecker-agent.env
|
||
|
User=woodpecker
|
||
|
Group=woodpecker
|
||
|
ExecStart=/usr/local/bin/woodpecker-agent
|
||
|
WorkingDirectory=/var/lib/woodpecker/
|
||
|
StateDirectory=woodpecker
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|