blob: a70f7bfa58f8c595ffac23283bd763a4059fe65f (
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.4 2004/07/15 00:45:03 agriffis 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 ${?}
}
|