I have binary file that I run like
env SOME_VARS=some_values ./my_binary
Is there a way that when this execution ends (be it that it ends correctly or it crashes or it gets killed, whatever), it gets started again with the same environment variables?