summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-02-24 18:53:32 -0800
committerIvan Kohler <ivan@freeside.biz>2015-02-24 18:53:32 -0800
commit24bdd2d7ec485534761891bd1b0c42f14c11435a (patch)
tree2531349cef91e945862665d17550d88f16765318 /FS
parentae02d1178c6859f7a0a5e4a22c685de5f0477568 (diff)
reverting accidentally committed local changes
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Daemon/Preforking.pm2
-rw-r--r--FS/bin/freeside-queued19
2 files changed, 10 insertions, 11 deletions
diff --git a/FS/FS/Daemon/Preforking.pm b/FS/FS/Daemon/Preforking.pm
index 4c382eb76..4f3f2be85 100644
--- a/FS/FS/Daemon/Preforking.pm
+++ b/FS/FS/Daemon/Preforking.pm
@@ -46,7 +46,7 @@ use warnings;
use strict;
use constant DEBUG => 0; # Enable much runtime information.
-use constant MAX_PROCESSES => 4; # Total server process count. XXX conf to increase per-different daemon for busy sites using this (currently the only things using this are freeside-xmlrpcd and freeside-selfservice-xmlrpcd)
+use constant MAX_PROCESSES => 10; # Total server process count. XXX conf to increase per-different daemon for busy sites using this (currently the only things using this are freeside-xmlrpcd and freeside-selfservice-xmlrpcd)
#use constant TESTING_CHURN => 0; # Randomly test process respawning.
use vars qw( @EXPORT_OK $FREESIDE_LOG $SERVER_PORT $user $handle_request );
diff --git a/FS/bin/freeside-queued b/FS/bin/freeside-queued
index 4786132c6..7c4cf1b64 100644
--- a/FS/bin/freeside-queued
+++ b/FS/bin/freeside-queued
@@ -38,16 +38,15 @@ drop_root();
$ENV{HOME} = (getpwuid($>))[7]; #for ssh
warn "connecting to database\n" if $DEBUG;
-#$@ = 'not connected';
-#while ( $@ ) {
-# eval { adminsuidsetup $user; };
-# if ( $@ ) {
-# warn $@;
-# warn "sleeping for reconnect...\n";
-# sleep 5;
-# }
-#}
-adminsuidsetup $user;
+$@ = 'not connected';
+while ( $@ ) {
+ eval { adminsuidsetup $user; };
+ if ( $@ ) {
+ warn $@;
+ warn "sleeping for reconnect...\n";
+ sleep 5;
+ }
+}
my $log = FS::Log->new('queue');
logfile( "%%%FREESIDE_LOG%%%/queuelog.". $FS::UID::datasrc );