Hi I'm deploying prefect v1 on a VM with Ansible. ...
# ask-community
e
Hi I'm deploying prefect v1 on a VM with Ansible. I actually have a playbook to relaunch my prefect agent when needed with a kill and a launch with nohup.

https://puu.sh/Jj0Q7/77bd248705.png

If my VM crash it doesn't relaunch the prefect agent as I use nohup Does someone here have ever done a linux service or a daemon to handle prefect agent ?
1️⃣ 1
j
There is an example for Prefect 2 with systemd here that might be helpful. https://discourse.prefect.io/t/how-to-run-a-prefect-2-agent-as-a-systemd-service-on-linux/1450 I expect someone’s done something similar on Prefect 1.
👍 1