I have a scenario where I’d need to run a command on a fly machine right after is has been resumed from a suspended state.
Systemd has this built in but fly machines don’t run systemd. Is there a similar way for fly machines like putting a script into a specific place on that machine and it gets run automatically on resume?
The other obvious solution to this is to run the command using the machines API since I also use the API to resume the fly machine, but I am not quite sure if my follow-up command can be run immediately after resuming or if I need to wait shortly after issuing the start command for resuming the machine.
fly launch
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.