From ec4859836b01af44977421edda5670045fca5c0a Mon Sep 17 00:00:00 2001 From: wang--ge 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