[From nobody Sat Jun 20 06:29:07 2026
Received: (at submit) by bugs.debian.org; 2 Jun 2026 10:26:19 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-17.6 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
 DKIM_VALID_EF,FOURLA,HAS_PACKAGE,RDNS_NONE,SPF_HELO_NONE,SPF_SOFTFAIL,
 XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 26; hammy, 150; neutral, 109; spammy,
 0. spammytokens: hammytokens:0.000-+--H*Ad:N*Bug,
 0.000-+--H*Ad:N*Tracking, 0.000-+--HTo:N*Debian, 0.000-+--sk:taint_o,
 0.000-+--sk:TAINT_O
Return-path: &lt;email@patrickbraun.org&gt;
Received: from [2a01:4f8:2200:4394::2] (port=54368 helo=mail.deadtime.wtf)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;email@patrickbraun.org&gt;)
 id 1wUMKB-009fDA-0O for submit@bugs.debian.org;
 Tue, 02 Jun 2026 10:26:19 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)
 with ESMTPSA id F2D86148098F; Tue,  2 Jun 2026 12:18:55 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=patrickbraun.org;
 s=dkim; t=1780395536;
 h=from:subject:date:message-id:to:mime-version:content-type:
 content-transfer-encoding; bh=zxzSm/weE1i9Stq0uP+zj44wDl2tlbsvba1SwbEHcE8=;
 b=a39pudizGw/ijT1FnlE08wWOCkPkNbAPa013GsoVQZytdCYTCCv+hiJRnlzDe6HMIVfcod
 a6G/xWvsvs/U4VPtCxWfKzotQKb19GHS3UU/KhtFIj2vDOCpNpiZnwLCDqRNB1ckBGxO+K
 BpZod+lCpbYVUpsKirRue/Y89ShkBM3EWblaZuKrS5TDcBLQTmzy34L/G4dI5KKFhu+C2n
 ZxG4i/IyeNIq9XnMdU7I+4YrIYbctSOyIINntp9OrsPW6Wi1Sp3ZAsGwQqJ4aM97tuXwgC
 +ue8sdbn9WVF4vGxas7BFBmfG53gz5datCy3tMkfL2Zwg0O4UonOGOnDc+VK42RsdUxnPI
 vZVPFsYAZJTLv233Q3Hw9soBImpSAQWGvRbWjn6FF/mnx+XNTM3+3OAzqm61sSyJTuQ1/z
 0/GCanGfjqeLiu3MhLHaJI3cR+KaWxGb69GXsxeSfw8/fkEOD6UB7Y81lpxxVkolYA+ktq
 wwgEG3BhOxvzPnNnRHhXn6UjLUcR8/mHVg4jypGimm3R7imNfMy/Dc1h/lZcvAqKjLLQzt
 14HLb8vWQuLm5i7vqf8vSsYxwH+JwhXH1wWlhBOYcGDRt9C+fPXLdGJwGPErFg5Qrq7Qad
 GTUtNTXTaTTbIgZLmr3Faj5H4neI2gZN0sLx7bl7I00gvVfBmdFOs=
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Patrick Braun &lt;email@patrickbraun.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: mosquitto: systemd service does not restart on upgrade / systemd
 triggers missing in postinst
Message-ID: &lt;178039552312.3928.3789407458345852797.reportbug@f1494bfa4145&gt;
X-Mailer: reportbug 13.2.0
Date: Tue, 02 Jun 2026 10:18:43 +0000
X-Last-TLS-Session-Version: TLSv1.3
X-Greylist: delayed 434 seconds by postgrey-1.37 at buxtehude;
 Tue, 02 Jun 2026 10:26:18 UTC
Delivered-To: submit@bugs.debian.org

Package: mosquitto
Version: 2.0.21-1
Severity: normal

Dear Maintainer,

after a package upgrade, the mosquitto systemd service is not restarted automatically.
Looking at the debian/rules this does not seem like specifically intented behavior.

I suspect this is because the service file is not in the debian directory and dh_installsystemd does not place default triggers.
After tinkering a bit by copying the service to debian/ and setting an override for dh_installsystemd, the systemd postinst triggers
get inserted as expected. So I'm guessing that's the reason.

Just fyi this report is sent from a container so the kernel version does not match Deb13.
I noticed this problem when I upgraded from mosquitto 2.0 to 2.1 while testing configs.

Thank you for your time and effort

-- System Information:
Debian Release: 13.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.10 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages mosquitto depends on:
ii  adduser              3.152
ii  init-system-helpers  1.69~deb13u1
ii  libc6                2.41-12+deb13u3
ii  libcjson1            1.7.18-3.1+deb13u1
ii  libdlt2              2.18.10-10+b1
ii  libmosquitto1        2.0.21-1
ii  libssl3t64           3.5.6-1~deb13u1
ii  libsystemd0          257.13-1~deb13u1
ii  libwebsockets19t64   4.3.5-1+deb13u1
ii  libwrap0             7.6.q-36
ii  sysvinit-utils       3.14-4

mosquitto recommends no packages.

Versions of packages mosquitto suggests:
pn  apparmor  &lt;none&gt;

-- no debconf information
]