Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r17648: LJSUP-7287 (verify DB schema in moveuclu...

Committer: ailyin
LJSUP-7287 (verify DB schema in moveucluster)
U   trunk/cgi-bin/LJ/NewWorker.pm
Modified: trunk/cgi-bin/LJ/NewWorker.pm
===================================================================
--- trunk/cgi-bin/LJ/NewWorker.pm	2010-11-08 11:53:56 UTC (rev 17647)
+++ trunk/cgi-bin/LJ/NewWorker.pm	2010-11-09 03:55:03 UTC (rev 17648)
@@ -28,6 +28,7 @@
 sub after_fork              { }
 sub at_exit                 { }
 sub is_debug                { return 0 < $verbose }
+sub work_as_script          { 0 }
 
 sub catch_signals {
     my $self = shift;
@@ -109,6 +110,8 @@
     return $err->("LJHOME/bin/worker directory doesn't exist") unless -d $bin;
     return $err->("bogus app name") unless $name =~ /^[\w\-]+(\.[a-z]+)?$/i;
 
+    return if $self->work_as_script;
+
     my $rv = eval "use POSIX (); 1;";
     return $err->("couldn't load POSIX.pm") unless $rv;
 

Tags: andy, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments