Merge branch 'newpc92timings' of /scm/spider into newpc92timings
[spider.git] / perl / lock_nodes.pl
index 8f4875e7c320d9e5494d28eba480006e4324d17c..d57a6a0a4680032633590fd65ca52d993f21ac2c 100755 (executable)
@@ -10,7 +10,7 @@
 #
 # Copyright (c) 1998 Dirk Koopman G1TLH
 #
-# $Id$
+#
 # 
 
 # make sure that modules are searched in the order local then perl
@@ -19,14 +19,14 @@ BEGIN {
        # root of directory tree for this system
        $root = "/spider"; 
        $root = $ENV{'DXSPIDER_ROOT'} if $ENV{'DXSPIDER_ROOT'};
-
+        unshift @INC, "$root/perl";     # this IS the right way round!
        unshift @INC, "$root/local";
 }
 
 use DXVars;
 use DXUser;
 
-my $lockfn = "$root/perl/cluster.lck";       # lock file name
+my $lockfn = "$root/local/cluster.lck";       # lock file name
 if (-e $lockfn) {
        open(CLLOCK, "$lockfn") or die "Can't open Lockfile ($lockfn) $!";
        my $pid = <CLLOCK>;