summaryrefslogtreecommitdiff
path: root/FS/bin/freeside-queued
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/bin/freeside-queued
parentae02d1178c6859f7a0a5e4a22c685de5f0477568 (diff)
reverting accidentally committed local changes
Diffstat (limited to 'FS/bin/freeside-queued')
-rw-r--r--FS/bin/freeside-queued19
1 files changed, 9 insertions, 10 deletions
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 );