Good day colleagues. Then came the task of translation servers with ubuntu 14.04 to 18.04.
On 14.04 for monitoring of services were used monit, but if I correctly understand 18.04 it can be replaced by systemd. On account of the control processes is no problem, but in cases when you need to restart the service or the network card falls on the local network , then systemd was able to find only a very spike options. And how they think via systemd can be implemented provrka of the network card and dostupnosti Internet resources ? There are physical and virtual interfaces.
I would very much like to hear your opinion on this issue. Alternative options are welcome. Thank you.
Now monit tied these checks
check network eth0 with interface eth0
start program = "/sbin/ifup eth0"
stop program = "/sbin/ifdown eth0"
if failed link then restart
dhclient_eth0 check process with pidfile "/run/dhclient.eth0.pid"
depends on eth0
start program = "/sbin/dhclient -1 -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0"
stop program = "/sbin/dhclient -r -v -pf /run/dhclient.eth0.pid"