Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#2366 - Init-Script for mdadm
Attached to Project:
Arch Linux
Opened by Julian Wiesener (yofuh) - Sunday, 13 March 2005, 15:40 GMT
Last edited by arjan timmerman (blaasvis) - Monday, 14 March 2005, 08:24 GMT
Opened by Julian Wiesener (yofuh) - Sunday, 13 March 2005, 15:40 GMT
Last edited by arjan timmerman (blaasvis) - Monday, 14 March 2005, 08:24 GMT
|
Detailswould be nice to have a init-script for mdadm. For example:
#!/bin/bash . /etc/rc.conf . /etc/rc.d/functions PID=`pidof -o %PPID /sbin/mdadm` case "$1" in start) stat_busy "Starting mdadm" [ -z "$PID" ] && /sbin/mdadm --monitor --scan -i /var/run/mdadm.pid -f if [ $? -gt 0 ]; then stat_fail else add_daemon mdadm stat_done fi ;; stop) stat_busy "Stopping mdadm" [ ! -z "$PID" ] && kill $PID &>/dev/null if [ $? -gt 0 ]; then stat_fail else rm_daemon mdadm stat_done fi ;; restart) $0 stop $0 start ;; *) echo "usage: $0 {start|stop|restart}" esac exit 0 |
This task depends upon