woodpecker: Restart an agent when it dies.

This commit is contained in:
Julien Palard 2023-11-27 21:40:42 +01:00
parent 24932a2695
commit 0c3b686e23
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 8 additions and 0 deletions

View File

@ -56,6 +56,8 @@
ExecStart=/usr/local/bin/woodpecker-agent
PrivateTmp=true
Restart=always
RestartSec=30s
[Install]
WantedBy=multi-user.target
@ -66,3 +68,9 @@
enabled: yes
state: started
daemon_reload: yes
handlers:
- name: restart woodpecker agent
systemd:
name: woodpecker-agent
daemon-reload: true
state: restarted