SOURCES: mdadm.init Warn about MDADM_EMAIL setting being obsolete.
arekm
arekm at pld-linux.org
Thu Mar 13 17:37:05 CET 2008
Author: arekm Date: Thu Mar 13 16:37:05 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
Warn about MDADM_EMAIL setting being obsolete.
---- Files affected:
SOURCES:
mdadm.init (1.11 -> 1.12)
---- Diffs:
================================================================
Index: SOURCES/mdadm.init
diff -u SOURCES/mdadm.init:1.11 SOURCES/mdadm.init:1.12
--- SOURCES/mdadm.init:1.11 Wed Nov 28 22:23:20 2007
+++ SOURCES/mdadm.init Thu Mar 13 17:37:00 2008
@@ -17,13 +17,12 @@
. /etc/sysconfig/mdadm
fi
-[ -z "$MDADM_EMAIL" ] && MDADM_EMAIL="root at localhost"
-
start() {
# Start daemons.
if [ ! -f /var/lock/subsys/mdadm ]; then
+ [ -n "$MDADM_EMAIL" ] && echo "WARNING: sysconfig/mdadm:MDADM_EMAIL no longer supported. Please use /etc/mdadm.conf:MAILADDR setting." >&2
msg_starting mdadm
- daemon mdadm --monitor --scan --daemonise --pid-file /var/run/mdadm.pid -m ${MDADM_EMAIL} ${MDADM_OPTS}
+ daemon mdadm --monitor --scan --daemonise --pid-file /var/run/mdadm.pid ${MDADM_OPTS}
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/mdadm
else
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/mdadm.init?r1=1.11&r2=1.12&f=u
More information about the pld-cvs-commit
mailing list