Adds forever script

This commit is contained in:
Thomas Forgione 2019-10-10 13:57:59 +02:00
parent 67346b2887
commit 4f36945dd7
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 9 additions and 0 deletions

9
bin/forever Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
while :; do
"$@"
if [ $? -ne 0 ]; then
exit $?
fi
done