1
0
Fork 0

Refreshing mdmonitor-service-simplify.patch.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-14 06:02:01 +01:00
parent 13a1db4ad2
commit 9c42c250a9
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
3 changed files with 18 additions and 21 deletions

View file

@ -0,0 +1,17 @@
Author: Michael Tokarev <mjt@tls.msk.ru>
Description: Simplify mdmonitor.service (Closes: #764647).
There isn't much for customization for mdadm --monitor.
it'll just do what it's supposed to do, so just run it.
diff -Naurp mdadm.orig/systemd/mdmonitor.service mdadm/systemd/mdmonitor.service
--- mdadm.orig/systemd/mdmonitor.service
+++ mdadm/systemd/mdmonitor.service
@@ -11,7 +11,4 @@ DefaultDependencies=no
Documentation=man:mdadm(8)
[Service]
-Environment= MDADM_MONITOR_ARGS=--scan
-EnvironmentFile=-/run/sysconfig/mdadm
-ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
-ExecStart=BINDIR/mdadm --monitor $MDADM_MONITOR_ARGS
+ExecStart=BINDIR/mdadm --monitor --scan

View file

@ -1,20 +0,0 @@
Subject: simplify mdmonitor.service
From: Michael Tokarev <mjt@tls.msk.ru>
Date: Fri, 14 Nov 2014 19:18:05 +0300
Bug-Debian: http://bugs.debian.org/764647
Forwarded: no
There isn't much for customization for mdadm --monitor.
it'll just do what it's supposed to do, so just run it.
--- a/systemd/mdmonitor.service
+++ b/systemd/mdmonitor.service
@@ -11,7 +11,4 @@ DefaultDependencies=no
Documentation=man:mdadm(8)
[Service]
-Environment= MDADM_MONITOR_ARGS=--scan
-EnvironmentFile=-/run/sysconfig/mdadm
-ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
-ExecStart=BINDIR/mdadm --monitor $MDADM_MONITOR_ARGS
+ExecStart=BINDIR/mdadm --monitor --scan

View file

@ -1,5 +1,5 @@
debian/0001-fix-manpages.patch
mdmonitor-service-simplify.diff
debian/0002-mdmonitor-service-simplify.patch
host-name-in-default-mailfrom.patch
exit-gracefully-when-md-device-not-found.patch
sha1-includes.diff