packages/woodpecker-agent-sudo/agent-systemd.service
Anthony Wang 023d679d67 Add 'woodpecker-agent-sudo/' from commit '022837448e8e6877c3717160612ca8642db4e0ca'
git-subtree-dir: woodpecker-agent-sudo
git-subtree-mainline: 996cb8e076
git-subtree-split: 022837448e
2023-11-11 19:09:38 -05:00

19 lines
468 B
Desktop File

[Unit]
Description=Woodpecker agent
Documentation=https://woodpecker-ci.org/docs/intro
Requires=network-online.target
After=network-online.target
[Service]
User=woodpecker-agent
Group=woodpecker-agent
EnvironmentFile=/etc/woodpecker/agent.env
ExecStart=/usr/bin/woodpecker-agent
RestartSec=5
Restart=on-failure
SyslogIdentifier=woodpecker-agent
WorkingDirectory=/var/lib/woodpecker-agent
ReadWritePaths=/var/lib/woodpecker-agent
[Install]
WantedBy=multi-user.target