diff --git a/misc/cronjobs/edi_cron.pl b/misc/cronjobs/edi_cron.pl index 8d1dd8c575..1d1072eaa1 100755 --- a/misc/cronjobs/edi_cron.pl +++ b/misc/cronjobs/edi_cron.pl @@ -146,6 +146,8 @@ foreach my $response (@downloaded_responses) { process_ordrsp($response); } +cronlogaction( { action => 'End', info => "COMPLETED" } ); + if ( close $pid_handle ) { unlink $pidfile; exit 0; @@ -154,8 +156,6 @@ if ( close $pid_handle ) { exit 1; } -cronlogaction( { action => 'End', info => "COMPLETED" } ); - sub check_pidfile { # sysopen my $fh, $pidfile, O_EXCL | O_RDWR or log_exit "$0 already running"