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