Question
How do you automatically start a Lotus® Domino® server when starting the Linux® operating system?
Answer
To do this, follow these steps:
1. Copy the script below to a file named /etc/init.d/domino
3. Reboot the server to see the results.
Note: For more details about this example of how you can start Domino automatically on Linux, refer to the Lotus Domino 6 for Linux Redbooks publication at http://www.redbooks.ibm.com
Disclaimer
This documentation is provided for reference purposes only. While efforts were made to verify the completeness and accuracy of the information contained in this documentation, this documentation is provided "AS IS" without any warranty whatsoever and to the maximum extent permitted, IBM® disclaims all implied warranties, including without limitation the implied warranties of merchantability, non-infringement and fitness for a particular purpose, with respect to the same. IBM shall not be responsible for any damages, including without limitation, direct, indirect, consequential or incidental damages, arising out of the use of, or otherwise related to, this documentation or any other documentation. Notwithstanding anything to the contrary, nothing contained in this documentation or any other documentation is intended to, nor shall have the effect of, creating any warranties or representations from IBM (or its suppliers or licensors), or altering the terms and conditions of the applicable license agreement governing the use of this software.
1. Copy the script below to a file named /etc/init.d/domino
#!/bin/bash2. Give execute permission to the file by using the command:
# DOM_HOME is the variable that tells the script where the Domino Data
resides
DOM_HOME=/home/notesdata
# DOM_USER is the Linux account used to run the Domino 6 server
DOM_USER=notes
# DOM_PROG is the location of the Domino executables
DOM_PROG=/opt/lotus/bin
start()
{
echo -n Starting domino:
if [ -f $DOM_HOME/.jsc_lock ]; then
rm $DOM_HOME/.jsc_lock
fi
/bin/su - notes -c "LD_PRELOAD=/lib/libpthread.so.0:/lib/librt.so.1;export
LD_PRELOAD;$DOM_PROG/server -jc -c" > /dev/null 2>&1 &
return 0
}
stop() {
echo -n Stopping domino:
/bin/su - notes -c "$DOM_PROG/server -q"
return 0
}
case $1 in
start)
start
;;
stop)
stop
;;
*)
echo Usage: domino {start|stop}
exit 1
esac
- chmod +x domino
- from /etc/rc0.d ln -s /etc/init.d/domino K10domino from /etc/rc2.d
ln -s /etc/init.d/domino S99domino from /etc/rc3.d ln -s
/etc/init.d/domino S99domino
3. Reboot the server to see the results.
Note: For more details about this example of how you can start Domino automatically on Linux, refer to the Lotus Domino 6 for Linux Redbooks publication at http://www.redbooks.ibm.com
Disclaimer
This documentation is provided for reference purposes only. While efforts were made to verify the completeness and accuracy of the information contained in this documentation, this documentation is provided "AS IS" without any warranty whatsoever and to the maximum extent permitted, IBM® disclaims all implied warranties, including without limitation the implied warranties of merchantability, non-infringement and fitness for a particular purpose, with respect to the same. IBM shall not be responsible for any damages, including without limitation, direct, indirect, consequential or incidental damages, arising out of the use of, or otherwise related to, this documentation or any other documentation. Notwithstanding anything to the contrary, nothing contained in this documentation or any other documentation is intended to, nor shall have the effect of, creating any warranties or representations from IBM (or its suppliers or licensors), or altering the terms and conditions of the applicable license agreement governing the use of this software.
Không có nhận xét nào:
Đăng nhận xét