vdo/Adapt-service-file.patch
wang--ge 40a5bb1510 update to version 8.1.0.264
(cherry picked from commit cfacea5acb16a14d1ecd8b2ed4dea1da0e6d0d4b)
2024-05-08 14:55:23 +08:00

31 lines
811 B
Diff

From ec4859836b01af44977421edda5670045fca5c0a Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Tue, 7 May 2024 19:52:23 +0800
Subject: [PATCH] adapt service file
---
examples/systemd/vdo.service | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/examples/systemd/vdo.service b/examples/systemd/vdo.service
index abfd836..3bf9371 100644
--- a/examples/systemd/vdo.service
+++ b/examples/systemd/vdo.service
@@ -1,3 +1,13 @@
[Unit]
Description=VDO volume services (provided for compatibility)
Documentation=man:vdo(8)
+After=systemd-remount-fs.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/vdo start --all --confFile /etc/vdoconf.yml
+ExecStop=/usr/bin/vdo stop --all --confFile /etc/vdoconf.yml
+
+[Install]
+WantedBy=multi-user.target
--
2.33.0