T
T
Tirenka6295112018-10-11 13:07:47
linux
Tirenka629511, 2018-10-11 13:07:47

Linux switch from monit to systemd?

Good afternoon colleagues. Here appeared the task of transferring servers from ubuntu 14.04 to 18.04.
On 14.04, monit was used to control services, but if I understood everything correctly on 18.04, it can be replaced with systemd. There are no problems at the expense of process control, but in cases where you need to restart a service or a network card, in case of falls at the local network level, then only very crutch options were found in systemd. And what do you think through systemd it is possible to implement a check of the network card and the availability of Internet resources? There are physical and virtual interfaces.
I would very much like to hear your opinion on this matter. Alternative options are welcome. Thank you.
Now such checks are tied to monit

check network eth0 with interface eth0
  onreboot nostart
  start program = "/sbin/ifup eth0"
  stop  program = "/sbin/ifdown eth0"
  if failed link then restart
  
check process dhclient_eth0 with pidfile "/run/dhclient.eth0.pid"
  depends on eth0
  onreboot nostart
  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"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
latush, 2018-10-11
@latush

I suspect that you somehow misunderstood.
monit - monitoring system.
systemd is an init system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question