I have a linuxOS based system.i want to restart a executable bin file if it killed or crashed.
location of executable file in home/bin/filename i have etc directory where i init.d ,systemd,cron sun-directories are there.
please suggest any script to write so that if the bin file will be restarted if it srashes.