woodpecker: Restart an agent when it dies.
This commit is contained in:
parent
24932a2695
commit
0c3b686e23
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue