All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: "Fabian Grünbichler" <fabian.gruenbichler@student.tuwien.ac.at>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: wireguard dkms systemd
Date: Tue, 06 Nov 2018 14:16:56 +0700	[thread overview]
Message-ID: <87bm72ekuv.fsf@fifthhorseman.net> (raw)
In-Reply-To: <20181105112744.zxe3kro53f2ez66a@uni>


[-- Attachment #1.1: Type: text/plain, Size: 1567 bytes --]

On Mon 2018-11-05 12:27:44 +0100, Fabian Grünbichler wrote:
>>  * i'm leery of the "systemctl daemon-reload" approach in particular, as
>>    mentioned above.  if lots of packages did that in their postinst
>>    they'd be interacting weirdly with each other during a multi-package
>>    upgrade.
>
> I don't see how reloading systemd units too often can cause any kind of
> interference, and in fact debhelper already does this for both the
> 'restart in postinst' (default in compat 10+) and the 'stop in prerm,
> start in postinst' (default in compat <= 9) mode - unconditionally, on
> every upgrade of a package that ships an automatically (re)started unit.
>
> random data point: on this system with 1606 maintscripts in place, 93
> have some variant of systemctl daemon-reload in them (and 12 even have
> multiple calls in one maintscript). on a server running Stretch, the
> ratio is 72/597.

thanks for this analysis, Fabian.  I think you've convinced me that
while it might be a problem, it's at least a much larger problem that we
don't need to solve or avoid in the wireguard packaging specifically :)

> FWIW, I'd like to see some variant of transparent reloading integrated
> into the Debian packages (even if disabled by default).

if you want to propose a postinst that addresses the two other concerns
(i.e. using a debconf question, and not prompting the local admin if the
local package was able to successfuly handle the reload), i'd happily
review it, and include it if it looks good.

all the best,

       --dkg

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

  reply	other threads:[~2018-11-06  9:02 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-20 20:59 wireguard dkms systemd Lucian Cristian
2018-10-20 21:07 ` Robert-André Mauchin
2018-10-21 12:12 ` Jordan Glover
2018-10-21 15:49   ` Lucian Cristian
2018-11-02 13:52     ` Daniel Kahn Gillmor
2018-11-02 23:27       ` Reuben Martin
2018-11-04  3:24         ` Daniel Kahn Gillmor
2018-11-04 15:35           ` Jason A. Donenfeld
2018-11-05  6:28             ` Daniel Kahn Gillmor
2018-11-05 11:27               ` Fabian Grünbichler
2018-11-06  7:16                 ` Daniel Kahn Gillmor [this message]
2018-11-06 13:04                   ` Fabian Grünbichler
2018-11-07  2:29                     ` Daniel Kahn Gillmor
2018-11-05 15:51               ` Jason A. Donenfeld
2018-11-03 11:54       ` Matthias Urlichs
2018-11-04  3:22         ` Daniel Kahn Gillmor
2018-10-21 13:01 ` Jonathon Fernyhough

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bm72ekuv.fsf@fifthhorseman.net \
    --to=dkg@fifthhorseman.net \
    --cc=fabian.gruenbichler@student.tuwien.ac.at \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.