summaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-20 08:55:34 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-20 08:55:34 +0800
commit24ec3204b34c9e6749b9312f2edb84edb2a4cb34 (patch)
tree4c4bc5443344d91ab20163b0ed491732d2a732ed /sample
parent047bb28fce410663731f69295cff89ab902a6085 (diff)
downloadpttbbs-24ec3204b34c9e6749b9312f2edb84edb2a4cb34.tar
pttbbs-24ec3204b34c9e6749b9312f2edb84edb2a4cb34.tar.gz
pttbbs-24ec3204b34c9e6749b9312f2edb84edb2a4cb34.tar.bz2
pttbbs-24ec3204b34c9e6749b9312f2edb84edb2a4cb34.tar.lz
pttbbs-24ec3204b34c9e6749b9312f2edb84edb2a4cb34.tar.xz
pttbbs-24ec3204b34c9e6749b9312f2edb84edb2a4cb34.tar.zst
pttbbs-24ec3204b34c9e6749b9312f2edb84edb2a4cb34.zip
merge from MergeCache
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1065 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'sample')
-rwxr-xr-xsample/pttbbs.sh7
-rw-r--r--sample/rc.local6
2 files changed, 3 insertions, 10 deletions
diff --git a/sample/pttbbs.sh b/sample/pttbbs.sh
index 9e1efc26..d5588b8a 100755
--- a/sample/pttbbs.sh
+++ b/sample/pttbbs.sh
@@ -4,8 +4,8 @@
case "$1" in
start)
- # 初始化 shared-memory, 載入使用者帳號
- /usr/bin/su -fm bbs -c /home/bbs/bin/uhash_loader
+ # 初始化 shared-memory, 載入 uhash, utmpsortd, timed(if necessary)
+ /usr/bin/su -fm bbs -c /home/bbs/bin/shmctl init
# 寄信至站外
/usr/bin/su -fm bbs -c /home/bbs/bin/outmail &
@@ -16,9 +16,6 @@ start)
# 啟動 port 23 (port 23須使用 root 才能進行 bind )
/home/bbs/bin/mbbsd 23 &
- # 啟動 utmpsortd
- /bin/sleep 5; "/usr/bin/su -fm bbs -c /home/bbs/bin/shmctl utmpsortd" &
-
# 提示
echo -n ' mbbsd'
;;
diff --git a/sample/rc.local b/sample/rc.local
index 96d2cb00..4da3d8d5 100644
--- a/sample/rc.local
+++ b/sample/rc.local
@@ -1,5 +1,5 @@
#!/bin/sh
-/usr/bin/su bbsadm -c /home/bbs/bin/uhash_loader
+/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 &
@@ -14,7 +14,3 @@
/home/bbs/bin/mbbsd 3008 &
/home/bbs/bin/mbbsd 3009 &
/home/bbs/bin/mbbsd 3010 &
-/usr/bin/su -fm bbsadm -c "/home/bbs/bin/shmctl utmpsortd"
-
-# 若您在 pttbbs.conf 中有開 OUTTA_TIMER 的話, 則須跑下面這行
-# /usr/bin/su -fm bbsadm -c "/home/bbs/bin/shmctl timed"