Das Notes Forum

Domino 9 und frühere Versionen => ND6: Administration & Userprobleme => Thema gestartet von: obrocke am 26.06.03 - 12:28:03

Titel: Domino unter Linux als Dienst
Beitrag von: obrocke am 26.06.03 - 12:28:03
Hi,

ich habe den Domino Server unter Suse Linux 8.1 installiert.
Läuft auch soweit sehr schön, nur:

Wie installiere ich den Server als Dienst ?

Danke,

Olaf

PS: Forum Suche brachte mir leider keine Erleuchtung.
Titel: Re:Domino unter Linux als Dienst
Beitrag von: nell am 26.06.03 - 12:36:35
Hi,

Du schreibst Dir ein Skript. Anleitung dazu gibts so weit ich weiss im Redbook:
http://publib-b.boulder.ibm.com/Redbooks.nsf/9445fa5b416f6e32852569ae006bb65f/984a1b2d1cf9a13a85256b900051c393?OpenDocument&Highlight=0,domino

gruz
nell


Titel: Re:Domino unter Linux als Dienst
Beitrag von: eknori am 26.06.03 - 12:42:25
#!/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/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
   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 &
   return 0
}

stop() {
   echo -n "Stopping domino: "
   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

Titel: Re:Domino unter Linux als Dienst
Beitrag von: obrocke am 26.06.03 - 14:01:38
 :) Danke !!!  :)