summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-20 10:50:21 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-20 10:50:21 +0800
commitfbfb35c92cc07b638294e35c9d9d8e14794afe2a (patch)
treedca91ed31cbf9935259ba32d6358185a11a9e86c
parent2f58e3bc5711ffc00207497feaf4eced2e4731e3 (diff)
downloadpttbbs-fbfb35c92cc07b638294e35c9d9d8e14794afe2a.tar
pttbbs-fbfb35c92cc07b638294e35c9d9d8e14794afe2a.tar.gz
pttbbs-fbfb35c92cc07b638294e35c9d9d8e14794afe2a.tar.bz2
pttbbs-fbfb35c92cc07b638294e35c9d9d8e14794afe2a.tar.lz
pttbbs-fbfb35c92cc07b638294e35c9d9d8e14794afe2a.tar.xz
pttbbs-fbfb35c92cc07b638294e35c9d9d8e14794afe2a.tar.zst
pttbbs-fbfb35c92cc07b638294e35c9d9d8e14794afe2a.zip
use bbsctl start
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@1070 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-xpttbbs/sample/pttbbs.sh4
-rw-r--r--pttbbs/sample/rc.local15
2 files changed, 5 insertions, 14 deletions
diff --git a/pttbbs/sample/pttbbs.sh b/pttbbs/sample/pttbbs.sh
index d5588b8a..24d19106 100755
--- a/pttbbs/sample/pttbbs.sh
+++ b/pttbbs/sample/pttbbs.sh
@@ -13,8 +13,8 @@ start)
# 轉信
/usr/bin/su -fm bbs -c /home/bbs/innd/innbbsd &
- # 啟動 port 23 (port 23須使用 root 才能進行 bind )
- /home/bbs/bin/mbbsd 23 &
+ # 啟動 port 23 (port 23須使用 root 才能進行 bind ) 以其他
+ /home/bbs/bin/bbsctl start
# 提示
echo -n ' mbbsd'
diff --git a/pttbbs/sample/rc.local b/pttbbs/sample/rc.local
index 4da3d8d5..c266f9bf 100644
--- a/pttbbs/sample/rc.local
+++ b/pttbbs/sample/rc.local
@@ -1,16 +1,7 @@
#!/bin/sh
+# WARNING: this script is run by root!!
+
/usr/bin/su bbsadm -c /home/bbs/bin/shmctl init
/usr/bin/su bbsadm -c /home/bbs/bin/outmail&
/usr/bin/su bbsadm -c /home/bbs/innd/innbbsd 7777
-/home/bbs/bin/mbbsd 23 &
-/home/bbs/bin/mbbsd 3000 &
-/home/bbs/bin/mbbsd 3001 &
-/home/bbs/bin/mbbsd 3002 &
-/home/bbs/bin/mbbsd 3003 &
-/home/bbs/bin/mbbsd 3004 &
-/home/bbs/bin/mbbsd 3005 &
-/home/bbs/bin/mbbsd 3006 &
-/home/bbs/bin/mbbsd 3007 &
-/home/bbs/bin/mbbsd 3008 &
-/home/bbs/bin/mbbsd 3009 &
-/home/bbs/bin/mbbsd 3010 &
+/home/bbs/bin/bbsctl start