]>
Commit | Line | Data |
---|---|---|
1d38cb4d TL |
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
2 | From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com> | |
3 | Date: Wed, 20 May 2021 15:36:34 +0200 | |
4 | Subject: [PATCH] d/rules: also add --no-restart-after-upgrade parameter | |
5 | MIME-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | is only a problem with dh compat >= 10 as that enables the | |
10 | restart-after-upgrade by default. | |
11 | ||
12 | Keep the old --no-restart-on-upgrade one as else debian may just | |
13 | think we want the restart but as full stop in prerm and start only in | |
14 | postinst. | |
15 | ||
16 | For ceph we actually want to let the user fully control the restart | |
17 | explicit. | |
18 | ||
19 | Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> | |
20 | --- | |
21 | debian/rules | 3 +++ | |
22 | 1 file changed, 3 insertions(+) | |
23 | ||
24 | diff --git a/debian/rules b/debian/rules | |
25 | index b5ce42c6f3..00e9ac6b16 100755 | |
26 | --- a/debian/rules | |
27 | +++ b/debian/rules | |
0d0a03a0 | 28 | @@ -104,7 +104,7 @@ override_dh_installinit: |
a912ff2c TL |
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 |