Public bug reported:

After unattended-upgrade of mtail, mtail.service does not restart
automatically.

This seems to be because the mtail.postinst script does not include any
instructions to (re)start the systemd service (such as "systemctl
restart mtail" or "deb-systemd-invoke").

Steps to reproduce:
1. Install mtail and enable mtail.service.
2. Run unattended-upgrade to upgrade mtail.
3. Observe that mtail.service is stopped after the upgrade and is not restarted 
automatically.

Expected behavior:
mtail.service should be restarted automatically after the package upgrade.

Actual behavior:
mtail.service remains inactive (dead) after the upgrade.

Possible cause:
mtail.postinst is missing a call to (re)start the service.


> lsb_release -rd
No LSB modules are available.
Description:    Ubuntu 24.04.2 LTS
Release:        24.04

> apt-cache policy mtail
mtail:
  Installed: 3.0.0~rc52-1ubuntu0.3
  Candidate: 3.0.0~rc52-1ubuntu0.3
  Version table:
 *** 3.0.0~rc52-1ubuntu0.3 500
        500 http://jp.archive.ubuntu.com/ubuntu noble-updates/universe amd64 
Packages
        500 http://security.ubuntu.com/ubuntu noble-security/universe amd64 
Packages
        100 /var/lib/dpkg/status
     3.0.0~rc52-1 500
        500 http://jp.archive.ubuntu.com/ubuntu noble/universe amd64 Packages

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: mtail 3.0.0~rc52-1ubuntu0.3
ProcVersionSignature: Ubuntu 6.8.0-41.41-generic 6.8.12
Uname: Linux 6.8.0-41-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.7
Architecture: amd64
CasperMD5CheckResult: pass
Date: Fri Jun 27 09:34:11 2025
InstallationDate: Installed on 2024-09-01 (298 days ago)
InstallationMedia: Ubuntu-Server 24.04.1 LTS "Noble Numbat" - Release amd64 
(20240827)
ProcEnviron:
 LANG=C.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=tmux-256color
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: mtail
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.default.mtail: 2024-09-07T16:38:44.944866

** Affects: mtail (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2115459

Title:
  do not restart after unattended-upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtail/+bug/2115459/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to