Arch Linux

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!
Tasklist

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
Task Type Feature Request
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

would 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

Closed by  Judd Vinet (judd)
Friday, 18 March 2005, 20:43 GMT
Reason for closing:  Implemented

Loading...