monit disregards start delay period in LXC container

Bug #1902903 reported by Oliver Mueller
6
This bug affects 1 person
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://bitbucket.org/tildeslash/monit/commits/2dae91df32ac7bd0e02c6e6ee8522e75958f4324.

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://de.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.