[Erp5-report] r18870 - /erp5/trunk/utils/oood/oood.rc

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jan 25 23:33:05 CET 2008


Author: kazuhiko
Date: Fri Jan 25 23:33:05 2008
New Revision: 18870

URL: http://svn.erp5.org?rev=18870&view=rev
Log:
only cosmetic changes

Modified:
    erp5/trunk/utils/oood/oood.rc

Modified: erp5/trunk/utils/oood/oood.rc
URL: http://svn.erp5.org/erp5/trunk/utils/oood/oood.rc?rev=18870&r1=18869&r2=18870&view=diff
==============================================================================
--- erp5/trunk/utils/oood/oood.rc (original)
+++ erp5/trunk/utils/oood/oood.rc Fri Jan 25 23:33:05 2008
@@ -39,7 +39,7 @@
 USER=oood
 OOOD_CONFIG_FILE=/etc/oood/oood.conf  #change this if want to use another config file
 HOME=$(awk -F= ' /^oood_home/ { print $2 }' $OOOD_CONFIG_FILE )
-RUNDIR=$(awk -F= ' /^run_dir/ { print $2 }' $OOOD_CONFIG_FILE ) 
+RUNDIR=$(awk -F= ' /^run_dir/ { print $2 }' $OOOD_CONFIG_FILE )
 UNOPATH=$(awk -F= ' /^uno_path/ { print $2 }' $OOOD_CONFIG_FILE )
 MAX_WAIT_TIME=120   #Maximum time to wait for the server to create pid file
 
@@ -60,10 +60,10 @@
   # Start the server in the background
   su --login $USER --command="$PYTHON $HOME/runserw.py --start > /dev/null &"
 
-           # Waiting for the lock file to be created by the server 
+           # Waiting for the lock file to be created by the server
            # We will check file existence at most MAX_RETRYS times, waiting 5 secs.
            # between retrys.
-           
+
   RETR_NO=0
   while [ $RETR_NO -lt $MAX_RETRYS ]; do
     if [ -f $LOCKFILE ]; then
@@ -114,7 +114,6 @@
     stop
     rm -f /var/lock/subsys/$NAME
     rm -f $LOCKFILE  #sometimes is not removed by runserv.py
-
     ;;
 
   restart)
@@ -125,11 +124,10 @@
   status)
     status
     ;;
+
   *)
-
-  gprintf "Usage: %s\n" "$0 {start|stop|restart|status}"
-  exit 1
-
+    gprintf "Usage: %s\n" "$0 {start|stop|restart|status}"
+    exit 1
 esac
 
 exit




More information about the Erp5-report mailing list