Configure your inittab file to restart Asterisk automatically if it ever crashes.
You should “never” need to do this in normal operation. I do not recommend an restarting Asterisk.
The key is getting to the root of why the restarts are needed. A properly configured Asterisk system will run for years without a restart.
The link goes somewhere wonky.