summaryrefslogtreecommitdiff
path: root/sys-apps/xmbmon/files/mbmon.rc
blob: b7fe6cbf7d5f6883320f62baa36f82937057ad33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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}
}