23 lines
430 B
SYSTEMD
23 lines
430 B
SYSTEMD
|
[Unit]
|
||
|
Description=Woodpecker agent
|
||
|
Requires=network-online.target
|
||
|
After=network-online.target
|
||
|
|
||
|
|
||
|
[Service]
|
||
|
User=woodpecker-agent
|
||
|
Group=docker
|
||
|
Type=simple
|
||
|
EnvironmentFile=/etc/woodpecker/agent
|
||
|
ExecStart=/usr/bin/woodpecker-agent
|
||
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||
|
Restart=on-failure
|
||
|
KillSignal=SIGINT
|
||
|
LimitNOFILE=8192
|
||
|
PrivateDevices=yes
|
||
|
DynamicUser=yes
|
||
|
ReadWritePaths=/var/run/docker.sock
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|