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

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