Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 1.69 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Diff for Daniel Nashed's rc_domino startup script, to enable domino2syslog and
  2. pipe your Domino console logs to regular Unix syslog.
  3.  
  4. See http://www.nashcom.de/nshweb/pages/startscript.htm for obtaining rc_domino.
  5.  
  6. See elsewhere in my gists for domino2syslog itself.
  7.  
  8. *** rc_domino_script    2009-09-24 15:42:47.000000000 -0500
  9. --- /home/meta/rc_domino_script 2011-02-04 17:03:20.000000000 -0600
  10. ***************
  11. *** 11,16 ****
  12. --- 11,18 ----
  13.   # Version 1.9 18.12.2008
  14.   ########################################################################
  15.  
  16. + DOMINO2SYSLOG=/opt/ibm/lotus/domino2syslog.rb
  17. +
  18.   # Determine Notes/OS level user
  19.   DOMINO_USER=$LOGNAME
  20.  
  21. ***************
  22. *** 633,639 ****
  23.   shutdown_domino_server ()
  24.   {
  25.     cd $DOMINO_DATA_PATH
  26. !   $DOMINO_BIN -q >> $DOMINO_OUTPUT_LOG 2>&1 &
  27.  
  28.     count=0
  29.     domino_is_running
  30. --- 639,646 ----
  31.   shutdown_domino_server ()
  32.   {
  33.     cd $DOMINO_DATA_PATH
  34. ! #  $DOMINO_BIN -q >> $DOMINO_OUTPUT_LOG 2>&1 &
  35. !   $DOMINO_BIN -q | $DOMINO2SYSLOG 2>&1 &
  36.  
  37.     count=0
  38.     domino_is_running
  39. ***************
  40. *** 847,854 ****
  41.       echo "---- end of info messages ----" >> $DOMINO_OUTPUT_LOG
  42.       echo >> $DOMINO_OUTPUT_LOG
  43.      
  44. !     $DOMINO_BIN $JAVA_CONTROLLER_STRING < $DOMINO_INPUT_FILE >> $DOMINO_OUTPUT_LOG 2>&1 &
  45. !        
  46.       echo "done PID is $!"
  47.      
  48.       # Remember status and be verbose
  49. --- 854,862 ----
  50.       echo "---- end of info messages ----" >> $DOMINO_OUTPUT_LOG
  51.       echo >> $DOMINO_OUTPUT_LOG
  52.      
  53. ! #    $DOMINO_BIN $JAVA_CONTROLLER_STRING < $DOMINO_INPUT_FILE >> $DOMINO_OUTPUT_LOG 2>&1 &
  54. !     $DOMINO_BIN $JAVA_CONTROLLER_STRING < $DOMINO_INPUT_FILE | $DOMINO2SYSLOG 2>&1 &
  55. !
  56.       echo "done PID is $!"
  57.      
  58.       # Remember status and be verbose