Updated maintenance scripts
This commit is contained in:
parent
be16a1798f
commit
1c5b2c8f3e
4
CRON.sh
4
CRON.sh
@ -73,10 +73,10 @@ crontab - << EOF
|
|||||||
# Midnight event at 00:00.
|
# Midnight event at 00:00.
|
||||||
00 00 * * * $MHOME/etc/midnight
|
00 00 * * * $MHOME/etc/midnight
|
||||||
|
|
||||||
# Weekly event at Sunday 00:05.
|
# Weekly event at Sunday 00:15.
|
||||||
15 00 * * 0 $MHOME/etc/weekly
|
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
|
30 00 1 * * $MHOME/etc/monthly
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
@ -12,6 +12,13 @@ v0.51.5 19-May-2004
|
|||||||
Fixed a bug that crashed mbaff when new files are found in the
|
Fixed a bug that crashed mbaff when new files are found in the
|
||||||
files database (uploads).
|
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
|
v0.51.4 11-Apr-2004 - 19-May-2004
|
||||||
|
|
||||||
|
@ -3,13 +3,9 @@ $Id$
|
|||||||
|
|
||||||
MBSE BBS Script files.
|
MBSE BBS Script files.
|
||||||
|
|
||||||
If you want to make any changes to the scripts, do it here and not in the
|
If you use a distribution which is not supported here and want to have it
|
||||||
~/etc and ~/bin directories. After making the changes do a 'make install'
|
added, then send the file installinit.log found in this directory,
|
||||||
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,
|
|
||||||
SETUP.log (if exists) from the mbse main directory and a possible written
|
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
|
Michiel
|
||||||
|
@ -2,12 +2,16 @@
|
|||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
# MBSE BBS Maintenance - Should be run from cron.
|
# MBSE BBS Maintenance - Should be run from user 'mbse' crontab.
|
||||||
|
|
||||||
if [ -z "$MBSE_ROOT" ]; then
|
if [ -z "$MBSE_ROOT" ]; then
|
||||||
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
|
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
|
||||||
fi
|
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.
|
# Don't do maintenance if running on UPS battery power.
|
||||||
#
|
#
|
||||||
if [ -f $MBSE_ROOT/sema/upsalarm ]; then
|
if [ -f $MBSE_ROOT/sema/upsalarm ]; then
|
||||||
|
@ -5,9 +5,13 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
if [ "$MBSE_ROOT" = "" ]; then
|
if [ "$MBSE_ROOT" = "" ]; then
|
||||||
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
|
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
|
||||||
fi
|
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
|
# While the system is on UPS battery power, don't start maintenance
|
||||||
#
|
#
|
||||||
while [ -f $MBSE_ROOT/sema/upsalarm ]; do
|
while [ -f $MBSE_ROOT/sema/upsalarm ]; do
|
||||||
|
@ -7,6 +7,10 @@
|
|||||||
if [ "$MBSE_ROOT" = "" ]; then
|
if [ "$MBSE_ROOT" = "" ]; then
|
||||||
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
|
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
|
||||||
fi
|
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
|
# While the system is on UPS battery power, don't start maintenance
|
||||||
#
|
#
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/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$
|
# $Id$
|
||||||
|
|
||||||
if [ "$MBSE_ROOT" = "" ]; then
|
if [ "$MBSE_ROOT" = "" ]; then
|
||||||
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
|
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
|
||||||
fi
|
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
|
# While the system is on UPS battery power, don't start maintenance
|
||||||
#
|
#
|
||||||
while [ -f $MBSE_ROOT/sema/upsalarm ]; do
|
while [ -f $MBSE_ROOT/sema/upsalarm ]; do
|
||||||
|
Reference in New Issue
Block a user