Commit 361ee691 authored by Mike Hibler's avatar Mike Hibler

Improve the client-install. You can now do a "make client-install" from

the top level.  This will build all the necessary binaries and then install
them.  This works on FBSD4 and RHL7.3.  It still doesn't work on FBSD5
(newer compiler that no longer supports a style of use of _FUNCTION_ in the
event lib) or RHL9 (event lib needs SSL lib which has a bad dependency
on Kerberos).  Notes:

- requires that elvin libraries be installed on nodes (they are) to build
  event agents, requires linuxthreads be installed on FBSD (it is now) to
  build imagezip (which is installed, but is not strictly necessary)

- installed event-agents and other binaries are stripped

- added a few missing files to the source tree for bsd (healthd.conf)
  and linux (healthd.conf, rc.local)

- the only thing that doesn't get rebuilt in /usr/local/etc/emulab is
  healthd, I couldn't quickly find how it gets built

- uses a scaled down version of libtb with no DB functions (since mysql
  isn't installed on nodes).  N.B. DO NOT DO A CLIENT INSTALL FROM YOUR
  REGULAR OBJ TREE OR ELSE YOU MAY WIND UP WITH A NEUTERED VERSION OF
  libtb.a!

The build-as-well-as-install semantics are counter to the regular install
targets, but this is what we gotta do for now.  Once the TB source builds
under Linux and newer BSDs, we could undo this and just require that people
do a regular "make" followed by "make client-install"  OTOH, there should
be no reason to require installation of mysql and other server-side packages
just to build clients (or make them sit through the compilation of assign),
so maybe we will keep the client build special.
parent c6d589dd
......@@ -91,9 +91,11 @@ tipserv-install:
@$(MAKE) -C capture tipserv-install
@$(MAKE) -C tbsetup tipserv-install
client-install:
client-install:
@$(MAKE) -C lib/libtb client
@$(MAKE) -C event client-install
@$(MAKE) -C os client-install
@$(MAKE) -C sensors client-install
@$(MAKE) -C tmcd client-install
#
......
......@@ -63,7 +63,7 @@ install:
@$(MAKE) -C stated install
@$(MAKE) -C linktest install
client-install:
client-install: lib
ifeq ($(SYSTEM),FreeBSD)
@$(MAKE) -C delay-agent client-install
endif
......
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -32,8 +32,8 @@ delay-agent: $(OBJS)
$(OBJS): main.h ../lib/libevent.a
client-install:
$(INSTALL_PROGRAM) delay-agent $(DESTDIR)$(CLIENT_BINDIR)/delay-agent
client-install: delay-agent
$(INSTALL_PROGRAM) -s delay-agent $(DESTDIR)$(CLIENT_BINDIR)/delay-agent
clean:
/bin/rm -f *.o delay-agent
......@@ -58,11 +58,11 @@ $(LIBEVENTDIR)/%.a:
binaries: $(LOCAL_BINDIR)/$(DAEMON) $(LOCAL_BINDIR)/$(LTEVENT)
$(LOCAL_BINDIR)/$(DAEMON): $(DAEMON_OBJS) $(LIBTB_OBJS)
-mkdir $(LOCAL_BINDIR)
-mkdir -p $(LOCAL_BINDIR)
$(CC) $(LDFLAGS) $(DAEMON_OBJS) $(LIBTB_OBJS) $(LIBS) -o $@
$(LOCAL_BINDIR)/$(LTEVENT): $(LTEVENT_OBJS) $(LIBTB_OBJS)
-mkdir $(LOCAL_BINDIR)
-mkdir -p $(LOCAL_BINDIR)
$(CC) $(LDFLAGS) $(LTEVENT_OBJS) $(LIBTB_OBJS) $(LIBS) -o $@
$(DAEMON_OBJS): linktest.h ../lib/libevent.a ../lib/event.h
......@@ -76,10 +76,10 @@ install:
control-install: install
client-install:
$(INSTALL_PROGRAM) $(LOCAL_BINDIR)/$(DAEMON) \
client-install: all
$(INSTALL_PROGRAM) -s $(LOCAL_BINDIR)/$(DAEMON) \
$(DESTDIR)$(CLIENT_BINDIR)/$(DAEMON)
$(INSTALL_PROGRAM) $(LOCAL_BINDIR)/$(LTEVENT) \
$(INSTALL_PROGRAM) -s $(LOCAL_BINDIR)/$(LTEVENT) \
$(DESTDIR)$(CLIENT_BINDIR)/$(LTEVENT)
$(INSTALL_PROGRAM) $(SCRIPT) \
$(DESTDIR)$(CLIENT_BINDIR)/$(SCRIPT)
......
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -37,8 +37,8 @@ $(PROGRAMS): ../lib/libevent.a ../lib/event.h
install:
client-install:
$(INSTALL_PROGRAM) program-agent \
client-install: program-agent
$(INSTALL_PROGRAM) -s program-agent \
$(DESTDIR)$(CLIENT_BINDIR)/program-agent
clean:
......
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -69,8 +69,8 @@ proxytest: proxytest.o $(LIBTBDIR)/log.o
$(PROGRAMS): ../lib/libevent.a ../lib/event.h
client-install:
$(INSTALL_PROGRAM) evproxy $(DESTDIR)$(CLIENT_BINDIR)/evproxy
client-install: evproxy
$(INSTALL_PROGRAM) -s evproxy $(DESTDIR)$(CLIENT_BINDIR)/evproxy
clean:
/bin/rm -f *.o $(PROGRAMS)
......@@ -63,8 +63,8 @@ install: $(INSTALL_SBINDIR)/tevd \
control-install: $(INSTALL_BINDIR)/tevc
client-install:
$(INSTALL_PROGRAM) tevc $(DESTDIR)$(CLIENT_BINDIR)/tevc
client-install: tevc
$(INSTALL_PROGRAM) -s tevc $(DESTDIR)$(CLIENT_BINDIR)/tevc
clean:
/bin/rm -f *.o $(PROGRAMS)
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -81,8 +81,8 @@ $(PROGRAMS): ../lib/libevent.a ../lib/event.h
install:
client-install:
$(INSTALL_PROGRAM) trafgen $(DESTDIR)$(CLIENT_BINDIR)/trafgen
client-install: trafgen
$(INSTALL_PROGRAM) -s trafgen $(DESTDIR)$(CLIENT_BINDIR)/trafgen
clean:
/bin/rm -f lex.yy.c y.* *.o $(PROGRAMS)
......
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# Copyright (c) 2000-2002, 2004 University of Utah and the Flux Group.
# All rights reserved.
#
......
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# Copyright (c) 2000-2002, 2004 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -13,17 +13,21 @@ include $(OBJDIR)/Makeconf
all: libtb.a
client: libtb-nodb.a
mv libtb-nodb.a libtb.a
include $(TESTBED_SRCDIR)/GNUmakerules
SYSTEM := $(shell uname -s)
OBJS = log.o tbdefs.o
ifneq ($(SYSTEM),Linux)
OBJS += tbdb.o
endif
CFLAGS += -O -g -Wall -I${OBJDIR} -I/usr/local/include
libtb.a: $(OBJS)
libtb.a: $(OBJS) tbdb.o
$(AR) crv $@ $(OBJS) tbdb.o
$(RANLIB) $@
libtb-nodb.a: $(OBJS)
$(AR) crv $@ $(OBJS)
$(RANLIB) $@
......
......@@ -112,7 +112,7 @@ version.c: imagezip.c imageunzip.c imagedump.c
install: $(INSTALL_BINDIR)/imagezip $(INSTALL_BINDIR)/imageunzip $(INSTALL_BINDIR)/imagedump
client-install:
client-install: all
$(INSTALL) -m 755 -o root -g wheel -d $(DESTDIR)/usr/local/bin
$(INSTALL_PROGRAM) imagezip $(DESTDIR)/usr/local/bin/imagezip
$(INSTALL_PROGRAM) imageunzip $(DESTDIR)/usr/local/bin/imageunzip
......
......@@ -28,9 +28,9 @@ emulab-sync: emulab-sync.o version.o decls.h
version.c: emulab-syncd.c
echo >$@ "char build_info[] = \"Built `date +%d-%b-%Y` by `id -nu`@`hostname | sed 's/\..*//'`:`pwd`\";"
client-install:
$(INSTALL_PROGRAM) emulab-syncd $(DESTDIR)$(CLIENT_BINDIR)/emulab-syncd
$(INSTALL_PROGRAM) emulab-sync $(DESTDIR)$(CLIENT_BINDIR)/emulab-sync
client-install: emulab-syncd emulab-sync
$(INSTALL_PROGRAM) -s emulab-syncd $(DESTDIR)$(CLIENT_BINDIR)/emulab-syncd
$(INSTALL_PROGRAM) -s emulab-sync $(DESTDIR)$(CLIENT_BINDIR)/emulab-sync
$(INSTALL_PROGRAM) $(SRCDIR)/emulab-syncd.1 \
$(DESTDIR)$(CLIENT_MANDIR)/man1/emulab-syncd.1
$(INSTALL_PROGRAM) $(SRCDIR)/emulab-sync.1 \
......
......@@ -20,6 +20,9 @@ slothd:
install:
@$(MAKE) -C slothd install
client-install:
@$(MAKE) -C slothd client-install
clean: subdir-clean
subdir-clean:
......
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -57,8 +57,8 @@ client: slothd
install: $(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS) sdcollectd)
client-install:
$(INSTALL_PROGRAM) $(SLOTHD_DIR)/slothd $(DESTDIR)$(CLIENT_BINDIR)
client-install: client
$(INSTALL_PROGRAM) -s $(SLOTHD_DIR)/slothd $(DESTDIR)$(CLIENT_BINDIR)
clean:
rm -f *.o $(SDPROGS) $(SBIN_SCRIPTS) *~ core *.core version.c
......
......@@ -70,7 +70,7 @@ install: $(INSTALL_SBINDIR)/tmcd \
$(INSTALL_SBINDIR)/tmcd.restart
client-install:
client-install: tmcc-nossl findif
ifeq ($(SYSTEM),FreeBSD)
@$(MAKE) -C freebsd install
else
......
......@@ -78,14 +78,14 @@ dir-install:
common-install: dir-install
(cd ../common; $(MAKE) local-install)
sup-install: dir-install
sup-install: dir-install supfile
$(INSTALL) -m 755 ./supfile $(ETCDIR)/supfile
$(INSTALL) -m 750 -o root -g wheel -d $(DESTDIR)/root/.cvsup
$(INSTALL) -m 600 $(SRCDIR)/cvsup.auth $(DESTDIR)/root/.cvsup/auth
bin-install: dir-install
$(INSTALL) -m 755 ../tmcc-nossl $(BINDIR)/tmcc.bin
$(INSTALL) -m 755 ../findif $(BINDIR)/findif
$(INSTALL) -m 755 -s ../tmcc-nossl $(BINDIR)/tmcc.bin
$(INSTALL) -m 755 -s ../findif $(BINDIR)/findif
etc-install: dir-install sysetc-install
$(INSTALL) -m 644 $(SRCDIR)/group $(ETCDIR)/group
......@@ -110,6 +110,7 @@ script-install: dir-install
$(INSTALL) -m 755 $(SRCDIR)/liblocsetup.pm $(BINDIR)/liblocsetup.pm
$(INSTALL) -m 755 $(SRCDIR)/rc.delayagent $(BINDIR)/rc/rc.delayagent
$(INSTALL) -m 755 $(SRCDIR)/rc.healthd $(BINDIR)/rc/rc.healthd
$(INSTALL) -m 755 $(SRCDIR)/healthd.conf $(BINDIR)/healthd.conf
$(INSTALL) -m 755 $(SRCDIR)/rc.ipod $(BINDIR)/rc/rc.ipod
$(INSTALL) -m 755 $(SRCDIR)/rc.kname $(BINDIR)/rc/rc.kname
$(INSTALL) -m 755 $(SRCDIR)/rc.mfs $(BINDIR)/rc/rc.mfs
......@@ -136,7 +137,7 @@ sfs-install:
$(INSTALL) -m 775 -o sfs -g sfs -d $(DESTDIR)/var/sfs/root/var
$(INSTALL) -m 775 -o sfs -g sfs -d $(DESTDIR)/var/sfs/root/usr
jail-install: dir-install
jail-install: dir-install injail
$(INSTALL) -m 755 -o root -g wheel -d $(JAILDIR)
$(INSTALL) -m 644 $(SRCDIR)/jail/group $(JAILDIR)/group
$(INSTALL) -m 640 $(SRCDIR)/jail/master.passwd $(JAILDIR)/master.passwd
......
######################################################
#-
# Copyright (c) 1999-2000 James E. Housley <jim@thehousleys.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $Id: healthd.conf,v 1.1 2004-04-21 04:38:24 mike Exp $
#
######################################################
# Temperature Section
Temp0_active yes
Temp0_label Chip Set Temperature
Temp0_min 0.0
Temp0_max 30.0
Temp0_doWarn no
Temp0_doFail no
Temp1_active yes
Temp1_label CPU #0 Temperature
Temp1_min 10.0
Temp1_max 30.0
Temp1_doWarn no
Temp1_doFail no
Temp2_active yes
Temp2_label CPU #1 Temperature
Temp2_min 10.0
Temp2_max 30.0
Temp2_doWarn no
Temp2_doFail no
# Actions
Temp_warn /usr/bin/Mail -s "%s" root
Temp_fail /sbin/shutdown -p +2 "%s"
######################################################
# Fan Section
Fan0_active yes
Fan0_label CPU #0 Cooling Fan
Fan0_min 3000
Fan0_max 9999
Fan0_doWarn no
Fan0_doFail no
Fan1_active yes
Fan1_label CPU #1 Cooling Fan
Fan1_min 3000
Fan1_max 9999
Fan1_doWarn no
Fan1_doFail no
Fan2_active yes
Fan2_label Case Fan Cooling Fan
Fan2_min 3000
Fan2_max 9999
Fan2_doWarn no
Fan2_doFail no
# Actions
Fan_warn /usr/bin/Mail -s "%s" root
Fan_fail /sbin/shutdown -p +5 "%s"
#
# Send a message using NotePage software (http://www.notepage.com)
#Temp_warn /usr/local/bin/NotePage.pl pagejim "%s"
######################################################
# Voltage Section
Volt0_active yes
Volt0_label CPU #0 Core Voltage
Volt0_min 1.95
Volt0_max 2.05
Volt0_doWarn no
Volt0_doFail no
Volt1_active yes
Volt1_label CPU #1 Core Voltage
Volt1_min 1.95
Volt1_max 2.05
Volt1_doWarn no
Volt1_doFail no
#
# These are based upon the ATX power supply spec
#
Volt2_active yes
Volt2_label 3.3 Volt
Volt2_min 3.14
Volt2_max 3.47
Volt2_doWarn no
Volt2_doFail no
Volt3_active yes
Volt3_label 5 Volt
Volt3_min 4.75
Volt3_max 5.25
Volt3_doWarn no
Volt3_doFail no
Volt4_active yes
Volt4_label 12 Volt
Volt4_min 10.80
Volt4_max 13.20
Volt4_doWarn no
Volt4_doFail no
Volt5_active yes
Volt5_label -12 Volt
Volt5_min -13.20
Volt5_max -10.80
Volt5_doWarn no
Volt5_doFail no
Volt6_active yes
Volt6_label -5 Volt
Volt6_min -5.50
Volt6_max -4.50
Volt6_doWarn no
Volt6_doFail no
# Actions
Volt_warn /usr/bin/Mail -s "%s" root
Volt_fail /sbin/shutdown -p +1 "%s"
......@@ -61,8 +61,8 @@ sup-install: dir-install
$(INSTALL) -m 600 $(SRCDIR)/cvsup.auth $(DESTDIR)/root/.cvsup/auth
bin-install: dir-install
$(INSTALL) -m 755 ../tmcc-nossl $(BINDIR)/tmcc.bin
$(INSTALL) -m 755 ../findif $(BINDIR)/findif
$(INSTALL) -m 755 -s ../tmcc-nossl $(BINDIR)/tmcc.bin
$(INSTALL) -m 755 -s ../findif $(BINDIR)/findif
etc-install: dir-install sysetc-remove sysetc-install
$(INSTALL) -m 644 $(SRCDIR)/group $(ETCDIR)/group
......@@ -88,9 +88,9 @@ sysetc-install: dir-install
$(SYSETCDIR)/sysconfig/network-scripts/ifcfg-eth4
$(INSTALL) -m 755 $(SRCDIR)/ntpd.sh $(RCDIR)/init.d/ntpd
$(INSTALL) -m 755 $(SRCDIR)/testbed $(RCDIR)/init.d/testbed
-ln -s $(RCDIR)/init.d/testbed $(RCDIR)/rc3.d/S96testbed
-ln -s $(RCDIR)/init.d/testbed $(RCDIR)/rc1.d/K12testbed
-ln -s $(RCDIR)/init.d/testbed $(RCDIR)/rc6.d/K12testbed
-ln -sf $(RCDIR)/init.d/testbed $(RCDIR)/rc3.d/S96testbed
-ln -sf $(RCDIR)/init.d/testbed $(RCDIR)/rc1.d/K12testbed
-ln -sf $(RCDIR)/init.d/testbed $(RCDIR)/rc6.d/K12testbed
$(INSTALL) -m 755 -o root -g wheel -d $(SYSETCDIR)/cron.pend
if [ -e $(SYSETCDIR)/cron.daily/slocate.cron ]; then \
mv -f $(SYSETCDIR)/cron.daily/slocate.cron \
......@@ -101,9 +101,11 @@ sysetc-install: dir-install
$(SYSETCDIR)/cron.pend; \
fi
$(INSTALL) -m 755 $(SRCDIR)/elvin.sh $(RCDIR)/init.d/elvin
-ln -s $(RCDIR)/init.d/elvin $(RCDIR)/rc3.d/S96elvin
-ln -s $(RCDIR)/init.d/elvin $(RCDIR)/rc1.d/K12elvin
-ln -s $(RCDIR)/init.d/elvin $(RCDIR)/rc6.d/K12elvin
-ln -sf $(RCDIR)/init.d/elvin $(RCDIR)/rc3.d/S96elvin
-ln -sf $(RCDIR)/init.d/elvin $(RCDIR)/rc1.d/K12elvin
-ln -sf $(RCDIR)/init.d/elvin $(RCDIR)/rc6.d/K12elvin
$(INSTALL) -m 755 $(SRCDIR)/rc.local $(RCDIR)/rc.local
-ln -sf $(RCDIR)/rc.local $(SYSETCDIR)/rc.local
sysetc-remove:
-rm -f $(RCDIR)/*/S95anacron $(RCDIR)/*/K05anacron
......@@ -119,6 +121,7 @@ script-install: dir-install
$(INSTALL) -m 755 $(SRCDIR)/sethostname.dhclient \
$(BINDIR)/sethostname.dhclient
$(INSTALL) -m 755 $(SRCDIR)/rc.healthd $(BINDIR)/rc/rc.healthd
$(INSTALL) -m 755 $(SRCDIR)/healthd.conf $(BINDIR)/healthd.conf
$(INSTALL) -m 755 $(SRCDIR)/chipset.awk $(BINDIR)/chipset.awk
$(INSTALL) -m 755 $(SRCDIR)/cpuspeed.awk $(BINDIR)/cpuspeed.awk
$(INSTALL) -m 755 $(SRCDIR)/delaysetup $(BINDIR)/delaysetup
......@@ -130,8 +133,8 @@ script-install: dir-install
sfs-install:
$(INSTALL) -m 755 -o root -g wheel -d $(DESTDIR)/etc/sfs
$(INSTALL) -m 755 $(SRCDIR)/sfs.sh $(RCDIR)/init.d/sfs
-ln -s $(RCDIR)/init.d/nfs $(RCDIR)/rc3.d/S20nfs
-ln -s $(RCDIR)/init.d/sfs $(RCDIR)/rc6.d/K19sfs
-ln -sf $(RCDIR)/init.d/nfs $(RCDIR)/rc3.d/S20nfs
-ln -sf $(RCDIR)/init.d/sfs $(RCDIR)/rc6.d/K19sfs
$(INSTALL) -m 644 $(SRCDIR)/exports $(ETCDIR)/exports
$(INSTALL) -m 644 $(SRCDIR)/sfsrwsd_config $(ETCDIR)/sfs/sfsrwsd_config
$(INSTALL) -m 644 $(SRCDIR)/sfssd_config $(ETCDIR)/sfs/sfssd_config
......
######################################################
#-
# Copyright (c) 1999-2000 James E. Housley <jim@thehousleys.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $Id: healthd.conf,v 1.1 2004-04-21 04:38:24 mike Exp $
#
######################################################
# Temperature Section
Temp0_active yes
Temp0_label Chip Set Temperature
Temp0_min 0.0
Temp0_max 30.0
Temp0_doWarn no
Temp0_doFail no
Temp1_active yes
Temp1_label CPU #0 Temperature
Temp1_min 10.0
Temp1_max 30.0
Temp1_doWarn no
Temp1_doFail no
Temp2_active yes
Temp2_label CPU #1 Temperature
Temp2_min 10.0
Temp2_max 30.0
Temp2_doWarn no
Temp2_doFail no
# Actions
Temp_warn /usr/bin/Mail -s "%s" root
Temp_fail /sbin/shutdown -p +2 "%s"
######################################################
# Fan Section
Fan0_active yes
Fan0_label CPU #0 Cooling Fan
Fan0_min 3000
Fan0_max 9999
Fan0_doWarn no
Fan0_doFail no
Fan1_active yes
Fan1_label CPU #1 Cooling Fan
Fan1_min 3000
Fan1_max 9999
Fan1_doWarn no
Fan1_doFail no
Fan2_active yes
Fan2_label Case Fan Cooling Fan
Fan2_min 3000
Fan2_max 9999
Fan2_doWarn no
Fan2_doFail no
# Actions
Fan_warn /usr/bin/Mail -s "%s" root
Fan_fail /sbin/shutdown -p +5 "%s"
#
# Send a message using NotePage software (http://www.notepage.com)
#Temp_warn /usr/local/bin/NotePage.pl pagejim "%s"
######################################################
# Voltage Section
Volt0_active yes
Volt0_label CPU #0 Core Voltage
Volt0_min 1.95
Volt0_max 2.05
Volt0_doWarn no
Volt0_doFail no
Volt1_active yes
Volt1_label CPU #1 Core Voltage
Volt1_min 1.95
Volt1_max 2.05
Volt1_doWarn no
Volt1_doFail no
#
# These are based upon the ATX power supply spec
#
Volt2_active yes
Volt2_label 3.3 Volt
Volt2_min 3.14
Volt2_max 3.47
Volt2_doWarn no
Volt2_doFail no
Volt3_active yes
Volt3_label 5 Volt
Volt3_min 4.75
Volt3_max 5.25
Volt3_doWarn no
Volt3_doFail no
Volt4_active yes
Volt4_label 12 Volt
Volt4_min 10.80
Volt4_max 13.20
Volt4_doWarn no
Volt4_doFail no
Volt5_active yes
Volt5_label -12 Volt
Volt5_min -13.20
Volt5_max -10.80
Volt5_doWarn no
Volt5_doFail no
Volt6_active yes
Volt6_label -5 Volt
Volt6_min -5.50
Volt6_max -4.50
Volt6_doWarn no
Volt6_doFail no
# Actions
Volt_warn /usr/bin/Mail -s "%s" root
Volt_fail /sbin/shutdown -p +1 "%s"
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
#
# Testbed Setup.
#
if [ -f /usr/local/etc/emulab/rc/rc.testbed ] ; then
echo -n 'testbed config: '
/usr/local/etc/emulab/rc/rc.testbed
touch /var/lock/subsys/testbed
fi
echo "Boot Complete"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment