aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/firebird/files/bbs.sh.example
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2001-02-16 13:35:31 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2001-02-16 13:35:31 +0000
commita2cb2b77ba2c69255676850715a997140f590a31 (patch)
tree4e87d81c067a79b74516b4a2f53ba461b861a800 /chinese/firebird/files/bbs.sh.example
parent3a3bf3a01202b1137c9577c13dc8c2ba6bac71d1 (diff)
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>
Diffstat (limited to 'chinese/firebird/files/bbs.sh.example')
-rw-r--r--chinese/firebird/files/bbs.sh.example37
1 files changed, 37 insertions, 0 deletions
diff --git a/chinese/firebird/files/bbs.sh.example b/chinese/firebird/files/bbs.sh.example
new file mode 100644
index 000000000000..084ec41aa027
--- /dev/null
+++ b/chinese/firebird/files/bbs.sh.example
@@ -0,0 +1,37 @@
+#!/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 \ No newline at end of file