Package: mdadm
Version: 2.5.6-6
Severity: wishlist
Tags: patch
As mdadm supports syslog it seems a shame that the daemon is not
started with the "-y" option to syslog all events.
The attached patch "mdadm-option1.patch" is a patch to
/etc/init.d/mdadm to make this the default.
If you will not accept this patch then please look at the attached
patch "mdadm-option2.patch" which adds a $DAEMON_OPTIONS variable in
/etc/default/mdadm which is then used in /etc/init.d/mdadm.
I guess that ideally you would adopt both options 1 and 2... but
that's your call!
Thanks for your consideration
Alex Owen
--- /etc/init.d/mdadm.orig 2006-10-29 10:05:02.000000000 +0000
+++ /etc/init.d/mdadm 2006-12-05 12:01:46.000000000 +0000
@@ -52,7 +52,7 @@
mkdir -p $RUNDIR
set +e
start-stop-daemon -S -p $PIDFILE -x $MDADM -- \
- --monitor --pid-file $PIDFILE --daemonise --scan
+ --monitor --pid-file $PIDFILE --daemonise --scan -y
log_end_msg $?
set -e
fi
--- /etc/init.d/mdadm.orig 2006-10-29 10:05:02.000000000 +0000
+++ /etc/init.d/mdadm 2006-12-05 12:13:56.000000000 +0000
@@ -27,6 +27,7 @@
RUNDIR=/var/run/mdadm
PIDFILE=$RUNDIR/monitor.pid
DEBIANCONFIG=/etc/default/mdadm
+DAEMON_OPTIONS=""
test -x $MDADM || exit 0
@@ -52,7 +53,7 @@
mkdir -p $RUNDIR
set +e
start-stop-daemon -S -p $PIDFILE -x $MDADM -- \
- --monitor --pid-file $PIDFILE --daemonise --scan
+ --monitor --pid-file $PIDFILE --daemonise --scan $DAEMON_OPTIONS
log_end_msg $?
set -e
fi
--- /etc/default/mdadm.orig 2006-12-05 12:15:00.000000000 +0000
+++ /etc/default/mdadm 2006-12-05 12:13:04.000000000 +0000
@@ -26,6 +26,10 @@
# should mdadm start the MD monitoring daemon during boot?
START_DAEMON=true
+# DAEMON_OPTIONS:
+# if the daemon is started then start with the following additional options
+DAEMON_OPTIONS=""
+
# VERBOSE=
# if this variable is set to true, mdadm will be a little more verbose e.g.
# when creating the initramfs.