PLEASE HELP! Linux Startup Script failing

I’m frustrated beyond belief. I can’t get the Linux Startup Script working for my Domino 8.5.1 server running on Red Hat Linux 5.4. I have spent countless hours scouring and trying suggestions on this forum and nothing works. Only available help is an old script from the Running Domino 6 on Linux Redbook. I have done everything exactly as it says and it wont work.Isn’t there anyone out their who can help with this? This is such idiocy that IBM can’t provide a total cross platform solution support with this on such an important platform. I can post the script and error messages if that would help.

Here is the script:

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=/var/notes/

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/ibm/lotus/bin/

start() {

echo -n "Starting domino: "

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

            rm $DOM_HOME/.jsc_lock

    fi

su - $DOM_USER -c “LD_PRELOAD=$DOM_HOME/lib/libpthread.so.0:$DOM_HOME/lib/librt.so.1;export LD_PRELOAD;$DOM_PROG/server -jc -c” > /dev/null 2>&1 &

  su - $DOM_USER  -c "cd /var/notes;/opt/ibm/lotus/bin/server" > /dev/null 2>&1 &



return 0

}

stop() {

echo -n "Stopping Domino: "

su - $DOM_USER -c  "cd /var/notes;/opt/ibm/lotus/bin/server -q"



return 0

}

case “$1” in

start)

start

;;

stop)

stop

;;

*)

echo "Usage: domino {start|stop}"

exit 1

esac

Here are the error messages returned when I try test running the “domino stop” script from the Linux command line:

[root@domino-test init.d]# ./domino stop

: command not found

: command not found

: command not found

: command not found

: command not found

: command not found

: command not found

'domino: line 29: syntax error near unexpexted token '{

'domino: line 29: 'start(){

[root@domino-test init.d]#

Can anyone know how to fix this?

Thank you!

Subject: What about Start?

What about when you try and start Domino, do you get an error there?

Subject: Bash

I think you are missing the first line where is says to use the bash.

Try adding this at the beginning:

#!/bin/bash

Cheers