Initial revision

This commit is contained in:
Ken Bowley
2001-08-17 05:46:24 +00:00
commit 40420d900a
750 changed files with 177485 additions and 0 deletions

26
script/maint Normal file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
#
# MBSE BBS Maintenance - Should be run from cron.
#
# 18-Mar-2000 MB.
if [ -z "$MBSE_ROOT" ]; then
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
fi
# Don't do maintenance if running on UPS battery power.
#
if [ -f $MBSE_ROOT/sema/upsalarm ]; then
exit 0
fi
$MBSE_ROOT/bin/mbuser pack kill 180 50 -quiet
$MBSE_ROOT/bin/mbmsg kill pack link -quiet
$MBSE_ROOT/bin/mbfile kill check pack index -quiet
# $MBSE_ROOT/bin/mbfile kill check pack index web -quiet
$MBSE_ROOT/bin/mbtoberep >$MBSE_ROOT/doc/toberep.doc
$MBSE_ROOT/bin/mbaff announce filefind -quiet
cd $MBSE_ROOT/tmp
$MBSE_ROOT/bin/mball list index -zip -quiet