Hi, back in this 2022 thread it sounded like this is in the works, but I can find no way to specify my machine restart policy in fly.toml.
In the mean time, I have something like this in my deployment script:
/root/.fly/bin/flyctl machines list --json |
jq -r '.[] | select(.config.restart.policy != "always") | .id' |
while read machine_id; do
/root/.fly/bin/flyctl machine update $machine_id --restart always --yes
done
Is there a better approach?