Antwort: Re: [suse-domino] Auto-Starting Domino Server with Console Output ? Dieses Mail wurde auf Viren geprüft!

[email protected]
Newsgroups gmane.linux.suse.domino
Message-ID <OFF3FDD23A.FC97A29F-ONC1256D97.003ED200-C1256D97.0040D97E@de>
Hi Sven,

tried that with tty4 - didn't work. Server starts, but no console log on 
tty4.

Here's the script:

#!/bin/sh

# 
# domino   Start/stop The Lotus Domino server
#
# chkconfig: 35 98 05
# description:   This script is used to start the domino server as a \
#     background process. It will cat the serverID password \
#     from a file to the server. Communication with the server \
#     has to be done through cconsole, Notes Administrator or \
#    webadmin.\
# Usage     /etc/rc.d/init.d/domino start|stop
# processname: server,...
DOMINO_USER="notes"      # User to run Domino server 
DOMINO_GROUP="notes" 
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
# See how we are called.
case "$1" in
start)
# Two ways to run the server (comment on of them out):
# 1. With the output of the console redirected to the log file
# /var/log/domin.log. Be sure to change the logrotate daemon
# 2. With 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.log 2>&1 &
# Version without logfile
su - ${DOMINO_USER} -c "cd ${DOMINO_DATA_DIR}; ${DOMINO_BIN_DIR}/server" > 
/dev/null 2>&1 &
sleep 60
echo "done!"
;;
stop)
echo -n "Stopping Domino server: "
su - ${DOMINO_USER} -c "cd ${DOMINO_DATA_DIR};${DOMINO_BIN_DIR}/server -q"
;;
*)
echo "Usage: domino {start|stop}"
exit 1







Sven Pfeifer <[email protected]>
04.09.2003 13:22
Bitte antworten an Sven Pfeifer

 
        An:     [email protected]
        Kopie: 
        Blindkopie: 
        Thema:  Re: [suse-domino] Auto-Starting Domino Server with Console Output ? Dieses 
Mail wurde auf Viren geprüft!


Hi,

[email protected] <[email protected]> 
wrote:
> Hello,
> 
> I have successfully configured my Domino server to autostart upon 
booting, 
> using the start script described in the "R5 for Linux on 
> Netfinity-Servers"- Redbook.
> However, is it possible NOT to redirect the console output either to 
> /dev/null or a logfile but instead have it accessible on a Linux Console 

> just like if the server was started manually ?
> 
> Thanx in advance for any help regarding this.
> 
> Mit freundlichen Grüßen / Regards
> 
> Torsten Marschall

check the start-script, where the output is redirected and use
e.g. /dev/tty7 instead of /dev/null.

For further questions please poste the start-script.

Cheers

                 Sven

-- 
8. After I kidnap the beautiful princess, we will be married
   immediately in a quiet civil ceremony, not a lavish spectacle in
   three weeks' time during which the final phase of my plan will be
   carried out.
   --Peter Anspach's list of things to do as an Evil Overlord
------------------------------------------------------[rand. sig. #15]

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.