Home > Step 5: Running Lotus Domino Server on Linux
Step-by-Step Guide:
EMAIL THIS

Step 5: Running Lotus Domino Server on Linux

03 May 2007 | SearchDomino.com

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   

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.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary




Lotus Notes Administration Solutions for Performance, Monitoring, Mailbox Management and Synchronization
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts