diff options
Diffstat (limited to 'sample')
-rwxr-xr-x | sample/pttbbs.sh | 7 | ||||
-rw-r--r-- | sample/rc.local | 6 |
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" |