Step 5: Running Lotus Domino Server on Linux

In the final segment of the tutorial, "Step-by-Step Guide: How to install Lotus Domino Server on Linux," you'll learn a script that makes Domino start automatically whenever you boot the Linux machine, and stop gracefully when you (or a power failure) stop the machine.

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 {start|stop|restart}" 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.

Related resources for running Domino Server on Linux:

IBM Redbook: Lotus Domino 6 for Linux

SUSE Quickstart Guide: Installing Domino 7

IBM Redbook: Domino Web Access 6.5 on Linux

Article: Domino shop dumps Windows for Linux

Face Off: Microsoft vs. Linux

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.


STEP-BY-STEP GUIDE: HOW TO INSTALL DOMINO SERVER ON LINUX

 Home: Introduction
 Step 1: Creating the virtual machine
 Step 2: Installing Linux
 Step 3: Installing Lotus Domino Server
 Step 4: Starting Lotus Domino Server for the first time
 Step 5: Running Lotus Domino Server on Linux

 

 

ABOUT THE AUTHOR:   
 
Charles Connell IV
Charles Connell IV is a high school student in Bedford, Mass. He can be reached at charles@connells.org.
 

This was first published in May 2007

Dig deeper on Lotus Notes 5

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close