how install restartd ubuntu

ubuntu

restartd

Process checker and/or restarter
https://github.com/ajraymond/restartd
Install sudo apt install restartd
Description:

Restartd is a daemon for checking running and not running processes. It reads the /proc directory every n seconds and does a POSIX regexp on the process names. You can execute a script or a program if the process is or is not running.