Red Hat Bugzilla – Bug 814857
Provide option to run polldaemon as a service
Last modified: 2015-05-21 04:34:20 EDT
polldaemon is currently forked off from the user's session.
If the user's session ends, it might get killed off before it has finished, effectively pausing whatever operation it was carrying out until a new daemon is forked off from some other process.
Find a sensible way to run this as a service. (One option to consider is a merger with dmeventd.)
There's already a common infrastructure that lvmetad uses currently for daemon code. We should reuse this (the "libdaemon" and around. Ondro - check the "libdaemon" subdir in lvm2 upstream and discuss with mornfall as he started with this common code).
Fixed in upstream, release V2.02.120: https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=0300730cc9ba058df830d9cb0981183b90ad17db
Prepared for rawhide build and enabling the lvmpolld there, I'll just wait for bug #1222495 - systemd to have a system preset that makes the service enabled by default which is the proper way to have the service enabled by default.
(I asked Lukas Nykryn from systemd team directly about this - he noted that currently the preset file is being moved from systemd to fedora-release package and we noticed that currently the /usr/lib/systemd/system-preset/90-default.preset incorrectly belongs to both packages at the moment somehow, so he's going to resolve this and he'll make a build soon, also including our patch to have lvmpolld enabled by default.)
lvmpolld daemon enabled and used by default in rawhide since lvm2-2.02.120-1.fc23.