mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 19:46:32 +00:00
8768eb2a2b
* add systemd unit file for server (`woodpecker-server.service`) * add systemd unit file for agent (`woodpecker-agent.service`) * add systemd unit files to nfpm package definitions * add etc config file examples fixes #1575
19 lines
525 B
Desktop File
19 lines
525 B
Desktop File
[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
|