* udev and systemd socket activation
@ 2011-04-14 23:34 Kay Sievers
2011-04-14 23:51 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2011-04-14 23:34 UTC (permalink / raw)
To: linux-hotplug
Just a heads up,
udev -git has new systemd socket/service files that will work only
with current systemd -git. Older systemd versions with this version of
udev will not properly boot up!
The new udev.socket file will instruct systemd to bind the udev
control socket and the netlink uevent socket, and let systemd
auto-start udevd when any events arrive.
It looks like this:
# udevd runs
$ pidof udevd
4544 4543 4401
# kill it
$ udevadm control --exit
$ pidof udevd
# trigger any device event
$ echo change > /sys/class/mem/null/uevent
# udevd is back and has handled this event
$ pidof udevd
4624 4623
This will enable us in the future to upgrade udev on the running
system without missing any event. Even without a running udevd, all
events will be queued up in the still open socket in pid 1.
Note: during package upgrade any incoming packet from the kernel would
start udevd. To prevent that, the udev socket needs to be stopped
during that window. Or in case a seamless upgrade is wanted, the
udev.service needs to be masked while the udev files are replaced on
disk. After unmasking the udev.service, the next incoming or already
queued events will start the daemon automatically.
Kay
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: udev and systemd socket activation
2011-04-14 23:34 udev and systemd socket activation Kay Sievers
@ 2011-04-14 23:51 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2011-04-14 23:51 UTC (permalink / raw)
To: linux-hotplug
On Fri, Apr 15, 2011 at 01:34:50AM +0200, Kay Sievers wrote:
> Just a heads up,
> udev -git has new systemd socket/service files that will work only
> with current systemd -git. Older systemd versions with this version of
> udev will not properly boot up!
>
> The new udev.socket file will instruct systemd to bind the udev
> control socket and the netlink uevent socket, and let systemd
> auto-start udevd when any events arrive.
>
> It looks like this:
> # udevd runs
> $ pidof udevd
> 4544 4543 4401
>
> # kill it
> $ udevadm control --exit
> $ pidof udevd
>
> # trigger any device event
> $ echo change > /sys/class/mem/null/uevent
>
> # udevd is back and has handled this event
> $ pidof udevd
> 4624 4623
Very cool stuff, thanks for doing this work!
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-14 23:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-14 23:34 udev and systemd socket activation Kay Sievers
2011-04-14 23:51 ` Greg KH
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).