don't run a self-service server against localhost OOTB; eliminate those gigantic...
authorivan <ivan>
Sun, 4 Jan 2009 22:07:16 +0000 (22:07 +0000)
committerivan <ivan>
Sun, 4 Jan 2009 22:07:16 +0000 (22:07 +0000)
Makefile
init.d/freeside-init

index 62d5c11..33bb57b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -88,7 +88,7 @@ QUEUED_USER=fs_queue
 
 SELFSERVICE_USER = fs_selfservice
 #never run on the same machine in production!!!
 
 SELFSERVICE_USER = fs_selfservice
 #never run on the same machine in production!!!
-SELFSERVICE_MACHINES = localhost
+SELFSERVICE_MACHINES = 
 # SELFSERVICE_MACHINES = www.example.com
 # SELFSERVICE_MACHINES = web1.example.com web2.example.com
 
 # SELFSERVICE_MACHINES = www.example.com
 # SELFSERVICE_MACHINES = web1.example.com web2.example.com
 
index 54ebea2..2f9d5d5 100644 (file)
@@ -75,6 +75,7 @@ case "$1" in
           echo "done."
         fi
 
           echo "done."
         fi
 
+        if [ -z "$SELFSERVICE_MACHINES" ]; then SELFSERVICE_MACHINES='localhost'; fi
         for MACHINE in $SELFSERVICE_MACHINES; do
           if [ -e /var/run/freeside-selfservice-server.$SELFSERVICE_USER.$MACHINE.pid ]
           then
         for MACHINE in $SELFSERVICE_MACHINES; do
           if [ -e /var/run/freeside-selfservice-server.$SELFSERVICE_USER.$MACHINE.pid ]
           then