1
0
Fork 0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-12 19:46:32 +00:00
woodpecker/nfpm/woodpecker-server.service
Johannes Kastl 8768eb2a2b
Add systemd unit files to the RPM/DEB packages ()
* 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 
2024-08-25 22:28:42 +02:00

19 lines
531 B
Desktop File

[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