blob: e95689ddcc3bbaef92475f5716742387a23dd706 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/mondo/files/mondo.sh,v 1.1.1.1 2005/11/30 09:56:16 chriswhite Exp $
depend() {
need modules
}
start() {
ebegin "Starting mondo"
if [ -z "$(cat /proc/sys/dev/sensors/chips)" ] ; then
eend 1 "You need to setup lm_sensors first"
return 1
fi
start-stop-daemon --start --quiet --exec /usr/sbin/mondo \
-- -c /etc/mondo.conf -s /etc/sensors.conf
eend ${?}
}
stop() {
ebegin "Stopping mondo"
start-stop-daemon --stop --quiet --pidfile /var/run/mondo.pid
eend ${?}
}
|