diff options
-rwxr-xr-x | client/scireclient.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/scireclient.pl b/client/scireclient.pl index 304051e..b4b0227 100755 --- a/client/scireclient.pl +++ b/client/scireclient.pl @@ -28,6 +28,15 @@ sub run_main { check_job_dir(); my $exitcode = talk_to_server(); + if($exitcode != 0) { + if($conf{daemon}) { + # We'll schedule another pass here later + } else { + debug("We couldn't communicate with the server...exiting!"); + exit(1); + } + } + } sub talk_to_server { |