This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/script/midnight
2002-02-04 15:18:06 +00:00

29 lines
539 B
Bash

#!/bin/sh
#
# MBSE BBS Midnight - Should be run from cron at 00:00
#
# $Id$
if [ "$MBSE_ROOT" = "" ]; then
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
fi
# While the system is on UPS battery power, don't start maintenance
#
while [ -f $MBSE_ROOT/sema/upsalarm ]; do
sleep 60
done
# Rollover statistic counters.
#
$MBSE_ROOT/bin/mbfido roll -quiet
# Log "What's on Hold"
#
$MBSE_ROOT/bin/mbout stat -quiet
# Export messages "missed" by the fast mailscan
#
$MBSE_ROOT/bin/mbfido scan -full -quiet