Skip to content

Instantly share code, notes, and snippets.

@lpar
Created Jul 19, 2011
Embed
What would you like to do?
IBM Lotus Domino rc_domino startup script diffs for syslog support
Diff for Daniel Nashed's rc_domino startup script, to enable domino2syslog and
pipe your Domino console logs to regular Unix syslog.
See http://www.nashcom.de/nshweb/pages/startscript.htm for obtaining rc_domino.
See elsewhere in my gists for domino2syslog itself.
*** rc_domino_script 2009-09-24 15:42:47.000000000 -0500
--- /home/meta/rc_domino_script 2011-02-04 17:03:20.000000000 -0600
***************
*** 11,16 ****
--- 11,18 ----
# Version 1.9 18.12.2008
########################################################################
+ DOMINO2SYSLOG=/opt/ibm/lotus/domino2syslog.rb
+
# Determine Notes/OS level user
DOMINO_USER=$LOGNAME
***************
*** 633,639 ****
shutdown_domino_server ()
{
cd $DOMINO_DATA_PATH
! $DOMINO_BIN -q >> $DOMINO_OUTPUT_LOG 2>&1 &
count=0
domino_is_running
--- 639,646 ----
shutdown_domino_server ()
{
cd $DOMINO_DATA_PATH
! # $DOMINO_BIN -q >> $DOMINO_OUTPUT_LOG 2>&1 &
! $DOMINO_BIN -q | $DOMINO2SYSLOG 2>&1 &
count=0
domino_is_running
***************
*** 847,854 ****
echo "---- end of info messages ----" >> $DOMINO_OUTPUT_LOG
echo >> $DOMINO_OUTPUT_LOG
! $DOMINO_BIN $JAVA_CONTROLLER_STRING < $DOMINO_INPUT_FILE >> $DOMINO_OUTPUT_LOG 2>&1 &
!
echo "done PID is $!"
# Remember status and be verbose
--- 854,862 ----
echo "---- end of info messages ----" >> $DOMINO_OUTPUT_LOG
echo >> $DOMINO_OUTPUT_LOG
! # $DOMINO_BIN $JAVA_CONTROLLER_STRING < $DOMINO_INPUT_FILE >> $DOMINO_OUTPUT_LOG 2>&1 &
! $DOMINO_BIN $JAVA_CONTROLLER_STRING < $DOMINO_INPUT_FILE | $DOMINO2SYSLOG 2>&1 &
!
echo "done PID is $!"
# Remember status and be verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment