Updated maintenance scripts

This commit is contained in:
Michiel Broek 2004-06-01 19:33:28 +00:00
parent be16a1798f
commit 1c5b2c8f3e
7 changed files with 34 additions and 15 deletions

View File

@ -73,10 +73,10 @@ crontab - << EOF
# Midnight event at 00:00.
00 00 * * * $MHOME/etc/midnight
# Weekly event at Sunday 00:05.
# Weekly event at Sunday 00:15.
15 00 * * 0 $MHOME/etc/weekly
# Monthly event at the 1st day of the month at 00:10.
# Monthly event at the 1st day of the month at 00:30.
30 00 1 * * $MHOME/etc/monthly
#-----------------------------------------------------------------------------

View File

@ -12,6 +12,13 @@ v0.51.5 19-May-2004
Fixed a bug that crashed mbaff when new files are found in the
files database (uploads).
script:
Updated maintenace scripts to check that they are run by user
mbse. The new scripts are not automatic installed, in the ~/etc
directory you will find these scripts with the extension .new
You may need to manually update the scripts before you install
the new scripts manually.
v0.51.4 11-Apr-2004 - 19-May-2004

View File

@ -3,13 +3,9 @@ $Id$
MBSE BBS Script files.
If you want to make any changes to the scripts, do it here and not in the
~/etc and ~/bin directories. After making the changes do a 'make install'
as root and the scripts are in place with the right permissions and owners.
Also, if you use a distribution which is not supported here and want to
have it added, then send the file installinit.log found in this directory,
If you use a distribution which is not supported here and want to have it
added, then send the file installinit.log found in this directory,
SETUP.log (if exists) from the mbse main directory and a possible written
inew init script you may have written.
new init script you may have written.
Michiel

View File

@ -2,11 +2,15 @@
#
# $Id$
#
# MBSE BBS Maintenance - Should be run from cron.
# MBSE BBS Maintenance - Should be run from user 'mbse' crontab.
if [ -z "$MBSE_ROOT" ]; then
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
fi
if [ "`id -un`" != "mbse" ] ; then
echo "Must be run by user 'mbse'"
exit 1
fi
# Don't do maintenance if running on UPS battery power.
#

View File

@ -7,6 +7,10 @@
if [ "$MBSE_ROOT" = "" ]; then
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
fi
if [ "`id -un`" != "mbse" ] ; then
echo "Must be run by user 'mbse'"
exit 1
fi
# While the system is on UPS battery power, don't start maintenance
#

View File

@ -7,6 +7,10 @@
if [ "$MBSE_ROOT" = "" ]; then
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
fi
if [ "`id -un`" != "mbse" ] ; then
echo "Must be run by user 'mbse'"
exit 1
fi
# While the system is on UPS battery power, don't start maintenance
#

View File

@ -1,12 +1,16 @@
#!/bin/sh
#
# MBSE BBS Weekly - Should be run every week at sunday from cron at 00:05
# MBSE BBS Weekly - Should be run every week at sunday from cron at 00:15
#
# $Id$
if [ "$MBSE_ROOT" = "" ]; then
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
fi
if [ "`id -un`" != "mbse" ] ; then
echo "Must be run by user 'mbse'"
exit 1
fi
# While the system is on UPS battery power, don't start maintenance
#