How do you automate domino to start on a linux box. Is there documentation on Linux configuration other than the install.
Subject: Automate Domino start on Linux Box
All you need to do is make sure you have a script in the /etc/rc.d/init.d directory. Make sure you have the server starting for the mode you are booting up (like 3 text mode or 5 graphic mode).
I named my file domino.
Is for you type in the user directory home for the domino user.
Is the location of the notesdata directory.
This domino service script references a startnotes script in the domino user’s home directory. The script did a “cd ”
-----------start of script--------------
#!/bin/sh
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 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, …
See how we were called.
case $1 in
start)
echo -n “Starting Domino server…”
su - notes -c “screen -d -m -S Domino /startnotes”
echo “done.”
;;
stop)
echo -n "Stopping Domino server. "
su - notes -c “cd /opt/local/notesdata; /opt/lotus/bin/server -q”
;;
*)
echo “Usage: domino {start|stop}”
exit 1
;;
esac
exit 0
End of the domino strip
----------------end of script----------------
Now I have screen installed on the linux box. (which allows me to login as the domino user and do a screen -dr to get to the console screen).
This script (which is like the NT service) will only do a start or stop. /sbin/service domino start or /sbin/service domino stop.
Hope it helps – Cheers – Email me if you want the exact scripts I use.
Subject: RE: Automate Domino start on Linux Box
Hi,This script should run ok.
I have a bit complicated script which I would like to share with you.
I have hardcoded there, my username as “domino”.
That’s the script:
#!/bin/bash
###############################################################################
Domino Server startup script
/etc/rc.d/init.d/domino linked to /etc/rc.d/rc3.d/S77domino
/etc/rc.d/rc5.d/S77domino
This script is not supported as you may need to adapt environment.
description: domino starts the domino external mail system
###############################################################################
PATH=$PATH:/opt/lotus/bin:/home/domino/notesdata:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/etc:/home/domino/bin:.
PID=/var/run/domino.pid
Notes_SHARED_DPOOLSIZE=8126464
NOTES_USER=domino
NOTES_SERVER=domino
START=“/opt/lotus/bin/server >> /dev/null”
STOP=“/opt/lotus/bin/server -q >> /dev/null”
NOTES_PATH=/home/domino/notesdata
BASH_ENV=/home/domino/.bashrc
USER=domino
USERNAME=domino
export PATH PID Notes_SHARED_DPOOLSIZE NOTES_USER NOTES_SERVER START STOP NOTES_PATH BASH_ENV USER USERNAME
case $1 in
‘start’)
echo "******* Starting of domino at : `date` *******"
# Verifying if the server is already running
if [ -f $PID ] ; then
echo "Server is already running - exiting"
exit 1
fi
# Execute the server
/bin/su $NOTES_USER -c "$START &"
echo "date= `date`" >> $PID
;;
‘stop’)
echo "******* Stoping of domino at : `date` *******"
# Verifying if the server is already running
if [ ! -f $PID ] ; then
echo "Server is not running - exiting"
exit 1
fi
# Stop the server
/bin/su $NOTES_USER -c "$STOP &"
rm -f $PID
count=0
NOTES_RUNNING=`ps -fu $NOTES_USER | grep /opt/lotus | grep -v grep`
while [[ -n $NOTES_RUNNING ]] ; do
NOTES_RUNNING=`ps -fu $NOTES_USER | grep /opt/lotus | grep -v grep`
sleep 10
count=`expr $count + 1`
echo ".... waiting "$count"0 seconds"
# Terminating Domino Server if still running
if [ $count -eq 13 ] ; then
echo "Domino is still running after 2 minutes"
echo " .....now for the ungracefull method"
# using nsd -kill first
/opt/lotus/bin/nsd -user $NOTES_SERVER -kill
fi
# if nsd doesn't work either
if [ $count -eq 19 ] ; then
echo "Domino is still running after 3 minutes"
echo " ....and now for the really ugly part..."
# killing all Domino proccesses with kill
REFUSE_TO_DIE=`ps -fu $NOTES_USER | grep /opt/lotus |grep -v grep | awk '{ print $2 }'`
kill -9 $REFUSE_TO_DIE
fi
# Now the server should be down.
done
;;
‘restart’)
echo "******* restarting of domino at : `date` *******"
/etc/init.d/domino stop
/etc/init.d/domino start
;;
*)
echo "Usage: $0 { start | stop | restart }"
exit 1
;;
esac
exit 0
Subject: Automate Domino start on Linux Box
Yes, you need a script. Search for startup script here or try the RedBook: