royiro10 / cogo

MIT License
2 stars 1 forks source link

Feature: Restart on Failure #41

Open royiro10 opened 1 month ago

royiro10 commented 1 month ago

Feature Description:

sometimes you want to run a long running command and make sure it is always up. if your command fails or an unexpected thing happen you want to command to still run and if it crash then, is should be restarted

Expected Behavior:

create a flag -r, --restart-on-failure the will listen for the running command and make sure to restart it if it exits with a non-0 status code

yavidor commented 1 month ago

44 Addresses this issue