summaryrefslogtreecommitdiff
path: root/debian/mdadm.postinst
diff options
context:
space:
mode:
authormadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-12-08 08:32:53 +0000
committermadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-12-08 08:32:53 +0000
commitad6f7defdcccfbafc11af42594cc67c9aeea45c8 (patch)
tree842227a7a78dd371b29b175cd95ecfb5d5d5784b /debian/mdadm.postinst
parent17382811bf18aca176e8b103608fd2b7514c6ac8 (diff)
* Export DAEMON_OPTIONS to /etc/default/mdadm, which gets passed to the
mdadm daemon on startup from the init.d script. The value is set to --syslog by default, and will get incorporated into debconf in a future version.
Diffstat (limited to 'debian/mdadm.postinst')
-rw-r--r--debian/mdadm.postinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/mdadm.postinst b/debian/mdadm.postinst
index 65a96ee7..ebaf07dd 100644
--- a/debian/mdadm.postinst
+++ b/debian/mdadm.postinst
@@ -85,6 +85,8 @@ case "${1:-}" in
AUTOCHECK="${RET:-true}"
db_get mdadm/start_daemon
START_DAEMON="${RET:-true}"
+ #db_get mdadm/daemon_options
+ [ -n "$DAEMON_OPTIONS" ] || DAEMON_OPTIONS='--syslog'
cat <<_eof > $DEBIANCONFIG
# mdadm Debian configuration
@@ -115,6 +117,10 @@ AUTOCHECK=$AUTOCHECK
# should mdadm start the MD monitoring daemon during boot?
START_DAEMON=$START_DAEMON
+# DAEMON_OPTIONS:
+# additional options to pass to the daemon.
+DAEMON_OPTIONS="$DAEMON_OPTIONS"
+
# VERBOSE=
# if this variable is set to true, mdadm will be a little more verbose e.g.
# when creating the initramfs.