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/mbse.start
2003-01-12 16:13:48 +00:00

34 lines
671 B
Plaintext

#
# BBS Startup script, should be run as BBS owner.
# Note: This is only used on Slackware systems until 7.0.0 and NetBSD.
#
# $Id$
#
if [ "$MBSE_ROOT" = "" ]; then
export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
fi
# If installed, start the BBS.
#
if [ -f $MBSE_ROOT/bin/mbtask ]; then
echo -n "Starting MBSE BBS: "
rm -f $MBSE_ROOT/sema/*
rm -f $MBSE_ROOT/var/*.LCK
rm -f $MBSE_ROOT/tmp/mb*
cd $MBSE_ROOT
$MBSE_ROOT/bin/mbtask >/dev/null
echo -n "mbtask "
sleep 2
if [ -f $MBSE_ROOT/etc/config.data ]; then
$MBSE_ROOT/bin/mbstat open -quiet
echo -n "opened "
fi
echo "done"
else
echo "mbtask not available!"
exit 1
fi