How do I use the "domino" script to start 2 partition servers at Linux boot?

The “domino” script specified one DOM_USER and one DOM_HOME.

I tried to add in with DOM_USER1 and DOM_USER2, DOM_HOME1 and DOM_HOME2 for the two partition servers. And, I implemented the following:

su - $DOM_USER1 -c “$DOM_PROG/server -jc -c” /dev/null 2>&1 &

su - $DOM_USER2 -c “$DOM_PROG/server -jc -c” /dev/null 2>&1 &

However, this did not start the 2 partition servers on linux boot.

Can anyone tell me what went wrong?

Subject: How do I use the “domino” script to start 2 partition servers at Linux boot?

Hi,

You have to make sure that you call the the …/server from the data directories. e.g.

“cd /notes/data1 && …/server”

“cd /notes/data2 && …server”

Kjeld

Subject: RE: How do I use the “domino” script to start 2 partition servers at Linux boot?

The “domino” script is auto-run at linux boot through “root” user. I supposed that is why there is “… $DOM_USER1 …” included within.

With the following:

su - $DOM_USER1 -c “$DOM_PROG/server -jc -c” > /dev/null 2>&1 &

su - $DOM_USER2 -c “$DOM_PROG/server -jc -c” > /dev/null 2>&1 &

the first partition started at boot, but not the second partition.

How do I change the script to auto boot the second partition?

Subject: How do I use the “domino” script to start 2 partition servers at Linux boot?

Consider using Daniel Nashed’s excellent script instead of the IBM one. It has built-in support for partitioned servers.

cheers,

Bram

Subject: How do I use the “domino” script to start 2 partition servers at Linux boot?

I use the following very standard script from the redbook

#!/bin/sh

A startup script for the Lotus Domino 6 server

chkconfig: 345 95 5

description: This script is used to start the domino \

server as a background process.\

Usage /etc/init.d/domino start|stop

This script assumes that you are using the performance tweaks

detailed in the Domino 6 for Linux redbook and that these tweaks

are stored in a directory called lib in the Domino Data directory.

If you are not using these tweaks, you should replace the line starting with

su - $DOM_USER -c "LD_PRELOAD…

with the following line

su - $DOM_USER -c “$DOM_PROG/server -jc -c” > /dev/null 2>&1 &

You should change the 3 following variables to reflect your environment.

DOM_HOME is the variable that tells the script where the Domino Data resides

DOM_HOME=/local/demo

DOM_USER is the Linux account used to run the Domino 6 server

DOM_USER=demo

DOM_PROG is the location of the Domino executables

DOM_PROG=/opt/lotus/bin

start() {

echo "Starting Demo: "

if [ -f $DOM_HOME/.jsc_lock ]; then

            rm $DOM_HOME/.jsc_lock

    fi

su - $DOM_USER -c "$DOM_PROG/server -jc -c" > /dev/null 2>&1 &	return 0

}

stop() {

echo "Stopping Demo: "

su - $DOM_USER -c "$DOM_PROG/server -q"

return 0

}

case “$1” in

start)

start

;;

stop)

stop

;;

*)

echo "Usage: domino {start|stop}"

exit 1

esac

and copy one for each partition I want to bring up to the /etc/init.d directory.

I then use chkconfig to make sure that each one is invoked at boot in runlevels 3.

You can monitor whether they’ve come up or not successfully by looking at the boot, or later with top or similar.

HTH, George :slight_smile: