We’re rewarding the question askers & reputations are being recalculated! Read more.
2 edited tags
| link
1
source | link

how to control process that killed

we want to know what are the options to control processes ,

for example

/opt/important_script/gate_machine.pl

is a script that must be up and running

and in case from some reason script killed , then we must to start it again

I was thinking to use some cron job under /etc/cron.d

and use it for this purpose ,

and every min check if PID is alive if not then cron job will start the script again

but I want to know about more options about this