From 31bf08b9cce141fa59ca4a89c3fd4785fd80470b Mon Sep 17 00:00:00 2001 From: "Leigh B. Stoller" <stoller@flux.utah.edu> Date: Mon, 11 Feb 2002 18:02:31 +0000 Subject: [PATCH] Add boottime init script to clear various DB tables at boot time, or whatever other maintenance is required. --- configure | 2 +- configure.in | 2 +- db/GNUmakefile.in | 2 +- rc.d/3.testbed.sh.in | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 82107ffc8f..a17f509a4a 100755 --- a/configure +++ b/configure @@ -1119,7 +1119,7 @@ outfiles="$outfiles Makeconf GNUmakefile \ discvr/GNUmakefile \ db/libdb.pm db/inuse db/avail db/nodeip db/showgraph \ db/dhcpd_makeconf db/nodelog db/webnodelog db/unixgroups \ - db/dbcheck db/interswitch\ + db/dbcheck db/interswitch db/dbboot \ ipod/GNUmakefile \ lib/GNUmakefile \ os/GNUmakefile os/split-image.sh os/imagezip/GNUmakefile \ diff --git a/configure.in b/configure.in index 3cccc3e955..36678eb0a1 100755 --- a/configure.in +++ b/configure.in @@ -204,7 +204,7 @@ outfiles="$outfiles Makeconf GNUmakefile \ discvr/GNUmakefile \ db/libdb.pm db/inuse db/avail db/nodeip db/showgraph \ db/dhcpd_makeconf db/nodelog db/webnodelog db/unixgroups \ - db/dbcheck db/interswitch\ + db/dbcheck db/interswitch db/dbboot \ ipod/GNUmakefile \ lib/GNUmakefile \ os/GNUmakefile os/split-image.sh os/imagezip/GNUmakefile \ diff --git a/db/GNUmakefile.in b/db/GNUmakefile.in index dd4a4150b4..cb6a85807c 100644 --- a/db/GNUmakefile.in +++ b/db/GNUmakefile.in @@ -11,7 +11,7 @@ include $(OBJDIR)/Makeconf BIN_SCRIPTS = nalloc nfree nodeip SBIN_SCRIPTS = avail inuse showgraph if2port backup webcontrol node_status \ genelists genelists.proxy dhcpd_makeconf nodelog unixgroups \ - dbcheck interswitch + dbcheck interswitch dbboot LIBEXEC_SCRIPTS = webnodelog LIB_SCRIPTS = libdb.pm diff --git a/rc.d/3.testbed.sh.in b/rc.d/3.testbed.sh.in index 7edc534c0d..68b16d2971 100755 --- a/rc.d/3.testbed.sh.in +++ b/rc.d/3.testbed.sh.in @@ -2,6 +2,11 @@ # # Utah Network Testbed local startup # +if [ -x @prefix@/sbin/dbboot ]; then + echo -n " dbboot" + @prefix@/sbin/dbboot +fi + if [ -x @prefix@/sbin/bootinfo.restart ]; then echo -n " bootinfo" @prefix@/sbin/bootinfo.restart -- GitLab