Re: Installing 5.0.9 on suse 8.1
"Thomas Schweikle" <[email protected]>
| Newsgroups | gmane.linux.suse.domino |
|---|---|
| Message-ID | <OFEF8EB8F5.C0FFBB36-ONC1256CBA.006BF689-C1256CBA.006F8331@fag.fiducia.de> |
Hi! > I followed instructions from database article "Installation of > Lotus Domino Server R5" > > I got to point 8 , where, logged as "notes" i type > > notes@servdom:/opt/local/notesdata> /opt/lotus/bin/http httpsetup > /opt/lotus/notes/latest/linux/http: error while loading shared > libraries: libpthread.so.0: cannot open shared object file: No > such file or directory > notes@servdom:/opt/local/notesdata> /opt/lotus/bin/http > /opt/lotus/notes/latest/linux/http: error while loading shared > libraries: libpthread.so.0: cannot open shared object file: No > such file or directory > notes@servdom:/opt/local/notesdata> > > What is happening here? Did you install package "compat"? > And something else.... Now suse 8.1 uses /etc/sysconfig > instead of rc.config file. I used files from > ftp://ftp.suse.com/pub/people/iboernig to start domino > in Suse 7.3, but how can i do this in 8.1? You can use these, or take mine (especially if you want to start a partitioned server). Parts of this are based on work of Mr. Boernig. I've made changes to start and stop pratitioned servers. - /etc/sysconfig/domino/domino --------------------------------- # # Name of the notes unix user account # NOTES_USER="notes" NOTES_GROUP="notes" # # Domino install directory # LOTUSDIR="/opt/lotus" # # Notes language setting (overrides $LANG for the notes unix user) # This is needed as workaround for the broken java vm in domino # NOTESLANG="de_DE" # # Some Performance settings (these values should be ok for most cases) # # # Number of max. open files # MAXFILES="16384" # # Size of largest shared memory segment # MAXSHAREDMEM="2140053504" # # Max. number of filedescriptors (ulimit -n) # FILEDESC="8192" # # Max. process per unix user (ulimit -u) # USERPROC="2048" ---------------------------------------------------------------- Put in here all your server data directories one line each. For each line one domino server instance will be started. - /etc/sysconfig/domino/partition ------------------------------ /home/notes/staging /home/notes/rctest ---------------------------------------------------------------- And here is the init.d-script: - /etc/init.d/domino ------------------------------------------- #! /bin/sh # Copyright (c) 1995-2000 SuSE GmbH Nuernberg, Germany. # # Authors: Kurt Garloff <[email protected]> # Ingo Boernig <[email protected]> # # init.d/domino # # and symbolic its link # # /sbin/rcdomino # # System startup script for the Lotus Domino Server # ### BEGIN INIT INFO # Provides: domino # Required-Start: $remote_fs $syslog $network # Required-Stop: $remote_fs $syslog # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description: Start Domino Server ### END INIT INFO # Source SuSE config . /etc/rc.config test -e /etc/sysconfig/domino/domino && . /etc/sysconfig/domino/domino # Set higher values for shared memory and file handles in the kernel echo $MAXSHAREDMEM > /proc/sys/kernel/shmmax echo $FILEMAX > /proc/sys/fs/file-max if [ `uname -r | cut -d "." -f 2` == 2 ]; then $INODEMAX = `expr $FILEMAX "*" 2` echo $INODEMAX > /proc/sys/fs/inode-max fi ulimit -n $FILEDESC ulimit -u $USERPROC DOMINO_BIN=$LOTUSDIR/bin/server test -x $DOMINO_BIN || exit 5 DOMINO_PART=/etc/sysconfig/domino/partition test -f $DOMINO_PART || exit 5 # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_status check and set local and overall rc status # rc_status -v ditto but be verbose in local rc status # rc_status -v -r ditto and clear the local rc status # rc_failed set local and overall rc status to failed # rc_failed <num> set local and overall rc status to <num><num> # rc_reset clear local rc status (overall remains) # rc_exit exit appropriate to overall rc status . /etc/rc.status # First reset status of this service rc_reset # Return values acc. to LSB for all commands but status: # 0 - success # 1 - generic or unspecified error # 2 - invalid or excess argument(s) # 3 - unimplemented feature (e.g. "reload") # 4 - insufficient privilege # 5 - program is not installed # 6 - program is not configured # 7 - program is not running # # Note that starting an already running service, stopping # or restarting a not-running service as well as the restart # with force-reload (in case signalling is not supported) are # considered a success. case "$1" in start) for part in `cat $DOMINO_PART`; do bpart=`basename $part` ipart=/var/log/notes/${bpart}.input opart=/var/log/notes/${bpart}.log echo -n "Starting Lotus Domino server ($bpart)" test -f $ipart && rm $ipart touch $ipart chown ${NOTES_USER}.${NOTES_GROUP} ${ipart} su - $NOTES_USER -c "export PATH=\$PATH:$part; echo \$PATH >$opart; $DOMINO_BIN <$ipart >>$opart 2>&1 &" || return=$rc_failed # Remember status and be verbose rc_status -v done ;; stop) for part in `cat $DOMINO_PART`; do bpart=`basename $part` ipart=/var/log/notes/${bpart}.input opart=/var/log/notes/${bpart}.log echo "Shutting down Lotus Domino server ($bpart)" echo "quit" >> $ipart done echo "... waiting for shutdown to complete" # # count=0 NOTES_RUNNING=`ps -fu $NOTES_USER |grep $LOTUSDIR | awk '{print $2}'` while [ "$NOTES_RUNNING" ] ; do sleep 10 count=`expr $count + 1` echo ".. waiting "$count"0 seconds" if [ $count -eq 13 ] ; then echo "Domino is still running after 2 minutes" echo "... now for the ungraceful method" for part in `cat $DOMINO_PART`; do rm "${part}/~notes.lck" done for i in `ps -fu $NOTES_USER |grep $LOTUSDIR | awk '{print $2}'`; do kill -9 $i done mems=`ipcs -m |grep $NOTES_USER | awk '{print $2}'` sems=`ipcs -s |grep $NOTES_USER | awk '{print $2}'` for j in $mems; do ipcrm shm $j ; done >/dev/null 2>&1 for j in $sems; do ipcrm sem $j ; done >/dev/null 2>&1 exit fi NOTES_RUNNING=`ps -fu $NOTES_USER |grep $LOTUSDIR | awk '{print $2}'` done echo -n "Domino server shutdown completed" # Remember status and be verbose rc_status -v ;; try-restart) ## Stop the service and if this succeeds (i.e. the ## service was running before), start it again. ## Note: try-restart is not (yet) part of LSB (as of 0.7.5) $0 status >/dev/null && $0 restart # Remember status and be quiet rc_status ;; restart) ## Stop the service and regardless of whether it was ## running or not, start it again. $0 stop $0 start # Remember status and be quiet rc_status ;; force-reload) ## Signal the daemon to reload its config. Most daemons ## do this on signal 1 (SIGHUP). ## If it does not support it, restart. #echo -n "Reload service FOO" ## if it supports it: #killproc -HUP $FOO_BIN #touch /var/run/FOO.pid #rc_status -v ## Otherwise: $0 stop && $0 start rc_status ;; reload) ## Like force-reload, but if daemon does not support ## signalling, do nothing (!) # If it supports signalling: #echo -n "Reload service FOO" #killproc -HUP $FOO_BIN #touch /var/run/FOO.pid #rc_status -v ## Otherwise if it does not support reload: rc_failed 3 rc_status -v ;; status) echo -n "Checking for Lotus Domino: " ## Check status with checkproc(8), if process is running ## checkproc will return with exit status 0. # Status has a slightly different for the status command: # 0 - service running # 1 - service dead, but /var/run/ pid file exists # 2 - service dead, but /var/lock/ lock file exists # 3 - service not running # NOTE: checkproc returns LSB compliant status values. checkproc $DOMINO_BIN rc_status -v ;; probe) ## Optional: Probe for the necessity of a reload, ## give out the argument which is required for a reload. #test /etc/FOO/FOO.conf -nt /var/run/FOO.pid && echo reload rc_failed 3 rc_status -v ;; *) echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}" exit 1 ;; esac rc_exit ---------------------------------------------------------------- Please make the necessary changes! -- Thomas