2022-11-14 20:24:47 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Woodpecker server
|
|
|
|
Requires=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
|
|
|
|
[Service]
|
2022-11-15 23:08:47 +01:00
|
|
|
User=woodpecker
|
2022-11-14 20:24:47 +01:00
|
|
|
Type=simple
|
|
|
|
EnvironmentFile=/etc/woodpecker/server
|
|
|
|
ExecStart=/usr/bin/woodpecker-server
|
|
|
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
|
|
|
Restart=on-failure
|
|
|
|
KillSignal=SIGINT
|
|
|
|
LimitNOFILE=8192
|
|
|
|
PrivateDevices=yes
|
|
|
|
DynamicUser=yes
|
2022-11-15 23:08:47 +01:00
|
|
|
StateDirectory=woodpecker
|
2022-11-14 20:24:47 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|