#!/sbin/openrc-run
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

start() {
	einfo "Start Mother Board Monitor"
	mbmon \
		-P ${MBMON_PORT} \
		${MBMON_OPTS}
	eend $?
}

stop() {
	einfo "Stop Mother Board Monitor"
	start-stop-daemon --stop --pidfile /var/run/mbmon.pid
	local ret=$?
	rm -f /var/run/mbmon.pid
	eend ${ret}
}
