20 lines
334 B
SYSTEMD
20 lines
334 B
SYSTEMD
|
[Unit]
|
||
|
Description=woodpecker ci
|
||
|
After=syslog.target
|
||
|
After=network.target
|
||
|
Requires=postgresql.service
|
||
|
|
||
|
[Service]
|
||
|
RestartSec=2s
|
||
|
Type=simple
|
||
|
User=woodpecker
|
||
|
Group=woodpecker
|
||
|
ExecStart=/usr/local/bin/woodpecker-server
|
||
|
Restart=always
|
||
|
% for k, v in sorted(env.items()):
|
||
|
Environment=${k}=${v}
|
||
|
% endfor
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|