blob: 3a2e2088a49b44d4dcddcac7351489b883b04057 (
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
28
|
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Author: Michael v.Ostheim <MvOstheim@web.de>
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-apps/mondo/files/mondo.sh,v 1.2 2003/02/14 23:26:16 vapier 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 ${?}
}
|