寫入一個新的rc.local 於FreeBSD 4.10

#在FreeBSD 4.10 之中找不到rc.local
#所以獨立建立一個rc.local 已在開機的同時一併載入一些開機所會用到的啟動參數
#若以 standalone 啟動且測試正常後,可加入 /etc/rc.local 開機自動啟動

#
# WindTopBBS
#
for i in /home/bbs/bin/bbsd /home/bbs/bin/bmtad /home/bbs/bin/bpop3d
/home/bbs/bin/gemd /home/bbs/bin/bguard /home/bbs/bin/xchatd ; do
if test -x $i; then
$i
fi
done

if [ -f /home/bbs/innd/innbbsd ]; then
su bbs -c &#039/home/bbs/innd/innbbsd&#039
fi

#[註4] 將須手動跑的部份寫在 /etc/rc.local 開機自動啟動

#
# WindTopBBS
#
su bbs -c “/home/bbs/bin/camera”
su bbs -c “/home/bbs/bin/account”
su bbs -c “/home/bbs/bin/acpro”
su bbs -c “/home/bbs/bin/makefw”

—–

~ 由 eddy 於 八月 24, 2004.

留言