คุยกันก่อนนะ ตอนแรกกะว่าจะทำเป็นหน้าเวบเลย แต่เมื่อลองแล้วมันช่างยากเสียนี่กะไร ไม่ได้เรียนเขียนเวบมาซะด้วย แถมทำเเสร็จดันโดนบอมบ์อีก เราก็ไม่เก่งป้องกันซะด้วย เลยทำให้เวบเสียหายเกือบหมด เลยหมดกำลังใจไปเลย วันหนึ่งนั่งคลิกเวบไปเรื่อยๆ ก็มาเจอเจ้า เข้า เอ้ะ น่าสนใจดี ทำง่าย แต่เสียอย่างเดียวไม่มีบอร์ดเนอะ ตกลงว่าเอาอันนี้เลยแล้วกัน อ่ออีกอย่างบลอกนี้ผมทำกับแฟน อาจจะสับสนว่าทำไมมีทั้งค่ะมีครับ เราจะพยามอัพเดทข้อมูลใหม่ๆเข้ามา เท่าที่เราพอมีเวลาและความรู้ ลองเข้ามาชมกันนะ มีคำถามก็ฝากไว้ที่นีได้ครับ

Wednesday, July 11, 2007

Step 5: Running Lotus Domino Server on Linux

While still logged in as notes, you can run Lotus Domino Server manually by typing:
cd /local/notesdata && /opt/ibm/lotus/bin/server
This is not the most convenient way to start Domino Server, however, since you would like it to restart automatically after a power failure, when no one is around to type anything.
The way to do this under Linux is to create an init script that launches Domino Server as a Linux service. Just as for a Windows service, this means that Domino will start and stop when Linux boots and shuts down, and it will do so gracefully.
A quick search on the Internet finds several init scripts for this purpose, but I could not find one that worked correctly. Part of the reason for this is that IBM recently changed the names of the installation directories. So I created my own simple script, shown below, based on a template from SUSE. Feel free to edit and adjust it as necessary for your needs.
#!/bin/sh
#
# /etc/init.d/domino
#
### BEGIN INIT INFO
# Provides: Domino
# Required-Start: $syslog $remote_fs $network
# Required-Stop: $syslog $remote_fs $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Domino providing IBM Lotus
Domino Server
# Description: Start Domino to provide an IBM
Lotus Domino Server
### END INIT INFO
#
. /etc/rc.status
case "$1" in
start)
echo -n "Starting Domino "
cd /local/notesdata && sudo -u notes
/opt/ibm/lotus/bin/server &
# Remember status and be verbose
rc_status -v
;;
stop)
echo -n "Shutting down Domino "
cd /local/notesdata && sudo -u notes
/opt/ibm/lotus/bin/server -q
# Remember status and be verbose
rc_failed 0 # have to force this since since
there's no way of really knowing
rc_status -v
;;
restart)
## Stop the service and regardless of whether it
was running or not, start it again.
$0 stop
$0 start
# Remember status and be quiet
rc_status
;;
*)
echo "Usage: $0 {startstoprestart}"
exit 1
;;
esac
rc_exit
Copy this script into a file named domino within the folder /etc/init.d. Run the command chkconfig --add domino, which will add Domino Server to the configured services.

Domino will now start automatically whenever you start the machine, and will stop gracefully when you stop the machine. During machine shutdown, the machine tells the Domino server to stop, and then waits for Domino to exit fully, before continuing with the remainder of the hardware and software shutdown.
One final note: This method of installing Lotus Domino Server on Linux causes the Domino process to run in the Linux background. You will see all the Domino console messages appear on the Linux text-based user interface. But you will not have a Domino console window on the Linux machine where you can type Domino server commands.
With this setup, you must administer Domino remotely using the Domino 7 Administrator client, which is the preferred method for administering Domino Server anyway.

Breaking News