Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble mit Startscript für Domino
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
rscho01
n00b
n00b


Joined: 13 Jul 2006
Posts: 1

PostPosted: Thu Jul 13, 2006 10:50 am    Post subject: Trouble mit Startscript für Domino Reply with quote

Hallo Gemeinde,
ich habe vor einigen Tagen einen Dominoserver 7.0.1 FP1 auf Gentoo 2.6.0 aufgesetzt und konfiguriert.
Startet man das gut Stück manuell, funktioniert das einwandfrei.

Jetzt versuche ich den Server mit diesem Script zu starten....

=========================================

#!/sbin/runscript
# domino Start/stop the Lotus Domino server
#
# chkconfig: 345 95 95
# description: This script is used to start and stop the domino
# server as a background process.
# It is only for gentoo linux!
# It will send
# the serverID password from a file to the server.
# Communication with the server has to be done through
# console, Notes Administrator or webadmin.
#
# Usage: /etc/rc.d/init.d/domino start|stop
#
# process name: server, ...
# opts="${opts} reload"


# Abhängigkeiten prüfen:
depend() {
need net
}


# domino-Server starten:
start() {

# Change the USER, GROUP, DATA_DIR and BIN_DIR for your server
DOMINO_USER="notes"
DOMINO_GROUP="notes"
DOMINO_DATA_DIR="/local/notesdata"
DOMINO_BIN_DIR="/opt/lotus/bin"

# We need a file to put the serverID password in.
# Make sure the owner is the Domino owner and the file
# permissions are set to 400

SERVER_PASSWD_FILE="/home/notes/.notespwd"

# See if the user that runs this script is root

if [ `id -u` != 0 ]; then
echo "This script must be run by root only"
exit 1
fi

# First, check if the password file exists,
# and if not, exit with an errorcode
if [ ! -f $SERVER_PASSWD_FILE ] ; then
echo "Error: no password file."
exit 1
fi

# Set permission to 400 (read-only-owner)
# and ownership to $DOMINO_USER. These next lines are
# not necessary if the ownership was set correctly the first time.

chmod 400 $SERVER_PASSWD_FILE
chown $DOMINO_USER.$DOMINO_GROUP $SERVER_PASSWD_FILE

# Two ways to run the server (comment one of them out)
# 2. With the output of the console redirected to /dev/null

echo -n "Starting domino server..."

# Version with logfile
su - ${DOMINO_USER} -c "cd ${DOMINO_DATA_DIR};\
cat ${SERVER_PASSWD_FILE} | ${DOMINO_BIN_DIR}/server" \
>> /var/log/domino 2>&1 &

# Version without logfile
# su - ${DOMINO_USER} -c "cd ${DOMINO_DATA_DIR};\
# cat ${SERVER_PASSWD_FILE} |\
# ${DOMINO_BIN_DIR}/server" > /dev/null 2>&1 &

echo "done."

}


stop() {

# Change the USER, GROUP, DATA_DIR and BIN_DIR for your server
DOMINO_USER="notes"
DOMINO_GROUP="notes"
DOMINO_DATA_DIR="/local/notesdata"
DOMINO_BIN_DIR="/opt/lotus/bin"

# We need a file to put the serverID password in.
# Make sure the owner is the Domino owner and the file
# permissions are set to 400

SERVER_PASSWD_FILE="/home/notes/.notespwd"

# See if the user that runs this script is root

if [ `id -u` != 0 ]; then
echo "This script must be run by root only"
exit 1
fi

echo -n "Stopping Domino server. "
su - ${DOMINO_USER} -c "cd ${DOMINO_DATA_DIR}; ${DOMINO_BIN_DIR}/server -q"

}

=========================================

und das Ding macht Probleme, siehe Auszug aus der Log.nsf des Servers

> 07/13/2006 09:55:14 37:15: 05:01

>
>
> sh ta07/13/2006 09:55:31 13:13


09:13
> 07/13/2006 09:55:34 33:60: 0A:4C
07/13/2006 09:55:44 05:01
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
ConvertZoneToText: Warning Time Zone -1 not found!
07/13/2006 09:55:59 33:07: 0A:4C
07/13/2006 09:56:07 33:60: 0A:4C

Außerdem werden nicht alle Servertasks gestartet.
Regulär beenden läßt sich das ganze auch nicht, also wird hier ein kill -9 pid notwendig.

Hat jemand eine Idee wo die Krux liegt????
Bin für jeden Vorschlag oder Tipp dankbar.

Gruß
Reinhold Schönemann
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum