What to do to restart services automatically?

The question arising from the problem!
Have the VPS SSH access, periodically emerge running services: ntp, vsftpd, 3proxy.
The problem of how to track in automatic mode not running service and restart it?
April 4th 20 at 00:52
3 answers
April 4th 20 at 00:54
From ready to use any supervisor in the spirit of supervisord, pm2. You could do: forever and Supervisord no longer need. Systemd
Useful article, thanks! - cathryn_Bergna commented on April 4th 20 at 00:57
April 4th 20 at 00:56
To configure the services so that they are not flying. Read the logs - usually written there for a reason.
Reading logs does not save in the case of ntpd, the virtual server from time to time freezes, a hike in hosting some of the problems, and the demon just falls off. - cathryn_Bergna commented on April 4th 20 at 00:59
That means we need to find a demon that does not fall off when hung. - Connor65 commented on April 4th 20 at 01:02
April 4th 20 at 00:58
add the appropriate units in the section [Service]:
then do systemctl daemon-reload.
then make a restart of the service.
Thanks, kind of helped here.
But we need statistics... - cathryn_Bergna commented on April 4th 20 at 01:01

Find more questions by tags Ubuntu