diff options
Diffstat (limited to 'FS/bin/freeside-queued')
-rw-r--r-- | FS/bin/freeside-queued | 19 |
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 ); |