* rfc: udev should be able to re-exec itself
@ 2012-06-01 23:45 William Hubbs
2012-06-04 13:43 ` Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: William Hubbs @ 2012-06-01 23:45 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 559 bytes --]
All,
currently udev does not have a way to restart itself. This would be a
useful feature, because we could then use this command when we upgrade
or downgrade udev on user's systems so that the most current version of
udev is always running.
One of gentoo's developers did suggest a patch quite a while back, but
some how it got lost in the shuffel. This patch will not apply now, but
it gives the impression that something like this could be added very
easily [1].
Thoughts anyone?
Thanks,
William
[1] https://bugs.gentoo.org/show_bug.cgi?id=129204#c7
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: rfc: udev should be able to re-exec itself
2012-06-01 23:45 rfc: udev should be able to re-exec itself William Hubbs
@ 2012-06-04 13:43 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2012-06-04 13:43 UTC (permalink / raw)
To: linux-hotplug
On Sat, Jun 2, 2012 at 1:45 AM, William Hubbs <w.d.hubbs@gmail.com> wrote:
> currently udev does not have a way to restart itself. This would be a
> useful feature, because we could then use this command when we upgrade
> or downgrade udev on user's systems so that the most current version of
> udev is always running.
>
> One of gentoo's developers did suggest a patch quite a while back, but
> some how it got lost in the shuffel. This patch will not apply now, but
> it gives the impression that something like this could be added very
> easily [1].
>
> Thoughts anyone?
We do not want daemons to re-execute themselves. It's far more
complicated than usually expected, and in most cases it should be
avoided.
The problem of interruption-free upgrades is in most cases solved with
systemd's socket activation. But I don't think any distribution uses
that possibility when they upgrade udev today, but they easily could,
all the things are there to make it work.
Udev should not re-execute itself, but stopped, installed, and
restarted. If you want fancy upgrade setups, use an init system that
supports that properly while keeping things simple, and which allows
interruption-free restarts by keeping the sockets open.
Don't hack up daemons with half-baken things; it's *really* hard to get right.
Thanks,
Kay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-04 13:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-01 23:45 rfc: udev should be able to re-exec itself William Hubbs
2012-06-04 13:43 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).