Bug#850180: mdadm: systemd units do not obey /etc/default/mdadm, esp DAEMON_OPTIONS=--syslog

Matthew Gabeler-Lee cheetah at fastcat.org
Tue Sep 26 04:55:41 UTC 2017


Package: mdadm
Version: 3.4-4+b1
Followup-For: Bug #850180

The DAEMON_OPTIONS bit of this is trivially corrected with this patch:

--- mdmonitor.service.orig      2017-09-26 00:54:25.491632797 -0400
+++ /lib/systemd/system/mdmonitor.service       2017-09-26 00:54:29.047611746 -0400
@@ -10,4 +10,5 @@
 DefaultDependencies=no
 
 [Service]
-ExecStart=/sbin/mdadm --monitor --scan
+EnvironmentFile=-/etc/default/mdadm
+ExecStart=/sbin/mdadm --monitor --scan $DAEMON_OPTIONS


-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing'), (500, 'oldstable'), (490, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mdadm depends on:
ii  debconf [debconf-2.0]  1.5.61
ii  libc6                  2.24-11+deb9u1
ii  lsb-base               9.20161125
ii  udev                   232-25+deb9u1

Versions of packages mdadm recommends:
ii  exim4-daemon-light [mail-transport-agent]  4.89-2+deb9u1
ii  kmod                                       23-2

mdadm suggests no packages.

-- Configuration Files:
/etc/cron.daily/mdadm changed [not included]

-- debconf information excluded



More information about the pkg-mdadm-devel mailing list