]> git.proxmox.com Git - lvm.git/blobdiff - patchdir/0005-dmeventd-ensure-service-gets-stopped-on-shutdown.patch
re-export patches from patch queue
[lvm.git] / patchdir / 0005-dmeventd-ensure-service-gets-stopped-on-shutdown.patch
diff --git a/patchdir/0005-dmeventd-ensure-service-gets-stopped-on-shutdown.patch b/patchdir/0005-dmeventd-ensure-service-gets-stopped-on-shutdown.patch
deleted file mode 100644 (file)
index d731649..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-From a781b1c1788461595f382918bb1fc210d248d444 Mon Sep 17 00:00:00 2001
-From: Thomas Lamprecht <t.lamprecht@proxmox.com>
-Date: Thu, 5 Oct 2017 12:52:15 +0200
-Subject: [PATCH] dmeventd: ensure systemd service gets stopped on shutdown
-
-Add these for dmeventd systemd unit (dm-event.service):
-
-  Before: shutdown.target
-  Conflicts: shutdown.target
-
-This will cause the dmeventd to be properly stopped at shutdown (after
-all the dmeventd clients unregistered their devices from monitoring)
-with dm-event.service's stop action (there's no direct action defined
-for the "stop" so systemd sends SIGTERM instead).
-
-Before, we let dmeventd to get killed only as part of the very last
-SIGTERM/SIGKILL for all the remaining processes late in the shutdown
-sequence so we may have missed some logs if dmeventd encountered an
-error during its shutdown (logging facilities are already off at this
-late time in shutdown sequence).
-
-Ref: https://www.redhat.com/archives/lvm-devel/2017-October/msg00000.html
-
-cherry picked from commit a781b1c1788461595f382918bb1fc210d248d444
-
-Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
----
- scripts/dm_event_systemd_red_hat.service.in | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/scripts/dm_event_systemd_red_hat.service.in b/scripts/dm_event_systemd_red_hat.service.in
-index 7c607aa..4924d39 100644
---- a/scripts/dm_event_systemd_red_hat.service.in
-+++ b/scripts/dm_event_systemd_red_hat.service.in
-@@ -3,7 +3,8 @@ Description=Device-mapper event daemon
- Documentation=man:dmeventd(8)
- Requires=dm-event.socket
- After=dm-event.socket
--Before=local-fs-pre.target
-+Before=local-fs-pre.target shutdown.target
-+Conflicts=shutdown.target
- DefaultDependencies=no
- [Service]
--- 
-2.9.3