monit disregards start delay period in LXC container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
monit (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Monit has a start delay timer, to prevent service from starting other services too early (before they are ready). This bug has been reported to monit developer and is fixed with commit https:/
Main problem here is, that boot time is read from /proc/stat
# grep btime /proc/stat
This boot time is from host though and a wrong reference in this case. It differs from /proc/uptime.
It is probably a major bug, because it can disrupt boot order. If monit starts pretty early and detects other services are not running, it will immediately (re-)start them. In case of apps with databases, this could lead to problems.
# lsb_release -rd
Description: Ubuntu 20.04.1 LTS
Release: 20.04
# apt-cache policy monit
monit:
Installed: 1:5.26.0-4
Candidate: 1:5.26.0-4
Version table:
*** 1:5.26.0-4 500
500 http://
100 /var/lib/