Blame SOURCES/0058-mdadm-Add-Documentation-entries-to-systemd-services.patch

2b63fb
From ea109700563d93704ebdc540c7770d874369f667 Mon Sep 17 00:00:00 2001
2b63fb
From: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
2b63fb
Date: Fri, 9 Sep 2022 15:50:33 +0200
2b63fb
Subject: [PATCH 58/83] mdadm: Add Documentation entries to systemd services
2b63fb
2b63fb
Add documentation section.
2b63fb
Copied from Debian.
2b63fb
2b63fb
Cc: Felix Lechner <felix.lechner@lease-up.com>
2b63fb
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
2b63fb
Acked-by: Coly Li <colyli@suse.de>
2b63fb
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
2b63fb
---
2b63fb
 systemd/mdadm-grow-continue@.service | 1 +
2b63fb
 systemd/mdadm-last-resort@.service   | 1 +
2b63fb
 systemd/mdcheck_continue.service     | 3 ++-
2b63fb
 systemd/mdcheck_start.service        | 1 +
2b63fb
 systemd/mdmon@.service               | 1 +
2b63fb
 systemd/mdmonitor-oneshot.service    | 1 +
2b63fb
 systemd/mdmonitor.service            | 1 +
2b63fb
 7 files changed, 8 insertions(+), 1 deletion(-)
2b63fb
2b63fb
diff --git a/systemd/mdadm-grow-continue@.service b/systemd/mdadm-grow-continue@.service
2b63fb
index 9fdc8ec7..64b8254a 100644
2b63fb
--- a/systemd/mdadm-grow-continue@.service
2b63fb
+++ b/systemd/mdadm-grow-continue@.service
2b63fb
@@ -8,6 +8,7 @@
2b63fb
 [Unit]
2b63fb
 Description=Manage MD Reshape on /dev/%I
2b63fb
 DefaultDependencies=no
2b63fb
+Documentation=man:mdadm(8)
2b63fb
 
2b63fb
 [Service]
2b63fb
 ExecStart=BINDIR/mdadm --grow --continue /dev/%I
2b63fb
diff --git a/systemd/mdadm-last-resort@.service b/systemd/mdadm-last-resort@.service
2b63fb
index efeb3f63..e9381125 100644
2b63fb
--- a/systemd/mdadm-last-resort@.service
2b63fb
+++ b/systemd/mdadm-last-resort@.service
2b63fb
@@ -2,6 +2,7 @@
2b63fb
 Description=Activate md array %I even though degraded
2b63fb
 DefaultDependencies=no
2b63fb
 ConditionPathExists=!/sys/devices/virtual/block/%i/md/sync_action
2b63fb
+Documentation=man:mdadm(8)
2b63fb
 
2b63fb
 [Service]
2b63fb
 Type=oneshot
2b63fb
diff --git a/systemd/mdcheck_continue.service b/systemd/mdcheck_continue.service
2b63fb
index 854317f1..f5324905 100644
2b63fb
--- a/systemd/mdcheck_continue.service
2b63fb
+++ b/systemd/mdcheck_continue.service
2b63fb
@@ -7,7 +7,8 @@
2b63fb
 
2b63fb
 [Unit]
2b63fb
 Description=MD array scrubbing - continuation
2b63fb
-ConditionPathExistsGlob = /var/lib/mdcheck/MD_UUID_*
2b63fb
+ConditionPathExistsGlob=/var/lib/mdcheck/MD_UUID_*
2b63fb
+Documentation=man:mdadm(8)
2b63fb
 
2b63fb
 [Service]
2b63fb
 Type=oneshot
2b63fb
diff --git a/systemd/mdcheck_start.service b/systemd/mdcheck_start.service
2b63fb
index 3bb3d130..703a6583 100644
2b63fb
--- a/systemd/mdcheck_start.service
2b63fb
+++ b/systemd/mdcheck_start.service
2b63fb
@@ -8,6 +8,7 @@
2b63fb
 [Unit]
2b63fb
 Description=MD array scrubbing
2b63fb
 Wants=mdcheck_continue.timer
2b63fb
+Documentation=man:mdadm(8)
2b63fb
 
2b63fb
 [Service]
2b63fb
 Type=oneshot
2b63fb
diff --git a/systemd/mdmon@.service b/systemd/mdmon@.service
2b63fb
index 77533958..97a1acd9 100644
2b63fb
--- a/systemd/mdmon@.service
2b63fb
+++ b/systemd/mdmon@.service
2b63fb
@@ -9,6 +9,7 @@
2b63fb
 Description=MD Metadata Monitor on /dev/%I
2b63fb
 DefaultDependencies=no
2b63fb
 Before=initrd-switch-root.target
2b63fb
+Documentation=man:mdmon(8)
2b63fb
 
2b63fb
 [Service]
2b63fb
 # mdmon should never complain due to lack of a platform,
2b63fb
diff --git a/systemd/mdmonitor-oneshot.service b/systemd/mdmonitor-oneshot.service
2b63fb
index 373955a2..ba86b44e 100644
2b63fb
--- a/systemd/mdmonitor-oneshot.service
2b63fb
+++ b/systemd/mdmonitor-oneshot.service
2b63fb
@@ -7,6 +7,7 @@
2b63fb
 
2b63fb
 [Unit]
2b63fb
 Description=Reminder for degraded MD arrays
2b63fb
+Documentation=man:mdadm(8)
2b63fb
 
2b63fb
 [Service]
2b63fb
 Environment=MDADM_MONITOR_ARGS=--scan
2b63fb
diff --git a/systemd/mdmonitor.service b/systemd/mdmonitor.service
2b63fb
index 46f7b880..9c364785 100644
2b63fb
--- a/systemd/mdmonitor.service
2b63fb
+++ b/systemd/mdmonitor.service
2b63fb
@@ -8,6 +8,7 @@
2b63fb
 [Unit]
2b63fb
 Description=MD array monitor
2b63fb
 DefaultDependencies=no
2b63fb
+Documentation=man:mdadm(8)
2b63fb
 
2b63fb
 [Service]
2b63fb
 Environment=  MDADM_MONITOR_ARGS=--scan
2b63fb
-- 
2b63fb
2.38.1
2b63fb