]> git.proxmox.com Git - ceph.git/blame - patches/0016-d-rules-fix-no-restart-on-upgrade.patch
import ceph 16.2.7
[ceph.git] / patches / 0016-d-rules-fix-no-restart-on-upgrade.patch
CommitLineData
1d38cb4d
TL
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3Date: Wed, 20 May 2021 15:36:34 +0200
4Subject: [PATCH] d/rules: also add --no-restart-after-upgrade parameter
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9is only a problem with dh compat >= 10 as that enables the
10restart-after-upgrade by default.
11
12Keep the old --no-restart-on-upgrade one as else debian may just
13think we want the restart but as full stop in prerm and start only in
14postinst.
15
16For ceph we actually want to let the user fully control the restart
17explicit.
18
19Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20---
21 debian/rules | 3 +++
22 1 file changed, 3 insertions(+)
23
24diff --git a/debian/rules b/debian/rules
25index b5ce42c6f3..00e9ac6b16 100755
26--- a/debian/rules
27+++ b/debian/rules
a912ff2c
TL
28@@ -88,7 +88,7 @@ override_dh_installinit:
29
30 # NOTE: execute systemd helpers so they pickup dh_install'ed units and targets
31 dh_systemd_enable
32- dh_systemd_start --no-restart-on-upgrade
33+ dh_systemd_start --no-restart-on-upgrade --no-restart-after-upgrade
34
1d38cb4d 35 override_dh_systemd_enable:
a912ff2c 36 # systemd enable done as part of dh_installinit
1d38cb4d 37