1234567891011121314151617181920212223242526 |
- #!/usr/bin/openrc-run
- # Copyright 1999-2006 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- depend() {
- use logger dns net
- }
- start() {
- ebegin "Starting mdadm monitor"
- mdadm --monitor --scan \
- --daemonise \
- --pid-file /run/mdadm.pid \
- ${MDADM_OPTS}
- eend $?
- }
- stop() {
- local ret
- ebegin "Stopping mdadm monitor"
- start-stop-daemon --stop --pidfile /run/mdadm.pid
- ret=$?
- rm -f /run/mdadm.pid
- eend ${ret}
- }
|