freebsd-ports/chinese/firebird/files/bbs.sh.example
Vanilla I. Shu a2cb2b77ba Firebird BBS is widely used telnet based Bulletin Board System in
Chinese Internet Community.
In Taiwan, there're over 300 BBS sites using Firebird, about 50 sites in china,
and about 20 worldwide (USA, UK, Canada, Austrailla and many countries can be
find Firebird) and over thousands of users on-line at the same time in biggest
BBS site.
For more information, ref: http://www.firebird.org.tw/

PR:		ports/24899
Submitted by:	Edward Ping-Da Chuan <edwardc@firebird.com.tw>
2001-02-16 13:35:31 +00:00

37 lines
No EOL
784 B
Bash

#!/bin/sh
#
# bbs.sh
#
# $Id$
bbsd_port=23
case "$1" in
start)
if [ -x /usr/local/bbs/bin/bbsd ]; then
/usr/local/bbs/bin/bbsd $bbsd_port && echo -n ' bbsd'
fi
if [ -x /usr/local/bbs/innd/innbbsd ]; then
su bbs -c '/usr/local/bbs/innd/innbbsd' && echo -n ' bbs.innbbsd'
fi
if [ -f /usr/local/bbs/etc/cron.bbs ]; then
su bbs -c 'crontab /usr/local/bbs/etc/cron.bbs' && echo -n ' bbs.cron'
fi
;;
stop)
if [ -f /usr/local/bbs/log/bbsd.pid ]; then
/bin/kill `cat /usr/local/bbs/log/bbsd.pid`
/usr/bin/killall bbsd 2> /dev/null
rm -fr /usr/local/bbs/log/bbsd.pid
echo -n " -bbsd"
else
echo "bbsd does not start yet. (pid file not found.)"
fi
;;
*)
echo ""
echo "usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac