Das Notes Forum
Domino 9 und frühere Versionen => ND6: Administration & Userprobleme => Thema gestartet von: mkuhnert am 16.07.03 - 11:30:35
-
Hallo,
habe gem. IBM Redbook das domino-Startskript verwendet, um den Domino-Server automatisch neu starten zu lassen.
Domino wird auch beim Neustart korrekt hochgefahren.
Ich wollte manuell als root den Server via Skript stoppen und danach neu starten (Grund: Datensicherung im Offline-Modus) lassen.
Domino fährt aber nicht hoch. Ich müßte dafür neu starten.
Hier das Skript (Berechtigungen 755 root:root):
----------------------------------------------------------------------------------------------------------
#!/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 &
su - $DOM_USER -c "$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
----------------------------------------------------------------------------------------------------------
Vielleicht kann mir ja jemand helfen!
Bye, Marc.
-
Hi Marc,
mit welchem Befehl und welcher Option hast Du versucht den Server zu stoppen?
Meff
-
Ich habe das mit dem IBM Script probiert und bei mir hat es nicht geklappt. Habe mir dann ein eigenes geschrieben, das funzt prächtig
#!/bin/sh
# domino Start/stop The Lotus Domino server
#
# description: This script is used to start the domino server as a \
# background process.
# Usage /etc/rc.d/init.d/domino start|stop
# processname: server,...
DOMINO_USER="domino" # User to run Domino server
DOMINO_DATA_DIR="/local/notesdata" # location of notes.ini
DOMINO_BIN_DIR="/opt/lotus/bin" # location of executables
# Look if the user that runs this script is root
if [ `id -u` != 0 ]; then
echo "This script must be run by root"
exit 1;
fi
case "$1" in
start)
su - ${DOMINO_USER} -c "cd ${DOMINO_DATA_DIR} &&
${DOMINO_BIN_DIR}/server" >/dev/null 2>&1 &
sleep 60
echo "done!"
;;
stop)
echo -n "Stopping Lotus Domino server: "
su - ${DOMINO_USER} -c "cd ${DOMINO_DATA_DIR};${DOMINO_BIN_DIR}/server -q"
;;
*)
echo "Usage: domino {start|stop}"
exit 1
esac
bekommst du eine fehlermeldung beim hochfahren ??
Guck dir das Script mal im MC an. bei mir waren nach dem Kopieren hinter den Startbefehlen <crlf>, die dann den Startbefehl "unterbrochen" haben. Da isser dann bei mir auch nicht hochgefahren.
Würde erklären, warum die stoppen aber nicht starten kannst.
Ach ja, die FM bei mir lautete ungefähr : "file or directory not found"