projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mark calls like DR4W-HB as invalid
[spider.git]
/
perl
/
create_sysop.pl
diff --git
a/perl/create_sysop.pl
b/perl/create_sysop.pl
index b85c60b770677b0f7cebadae00d1a2c017182b5b..99f3e0600d7b045177fb1d934df281c9f6881fb7 100755
(executable)
--- a/
perl/create_sysop.pl
+++ b/
perl/create_sysop.pl
@@
-19,6
+19,7
@@
BEGIN {
unshift @INC, "$root/local";
}
unshift @INC, "$root/local";
}
+use DXVars;
use SysVar;
use DXUser;
use DXUtil;
use SysVar;
use DXUser;
use DXUtil;
@@
-80,7
+81,7
@@
sub create_it
die "\$myalias \& \$mycall are the same ($mycall)!, they must be different (hint: make \$mycall = '${mycall}-2';).\n" if $mycall eq $myalias;
die "\$myalias \& \$mycall are the same ($mycall)!, they must be different (hint: make \$mycall = '${mycall}-2';).\n" if $mycall eq $myalias;
-$lockfn =
localdata("cluster.lck"); # lock file name
+$lockfn =
"$main::local_data/cluster.lck"; # lock file name (now in local data)
if (-e $lockfn) {
open(CLLOCK, "$lockfn") or die "Can't open Lockfile ($lockfn) $!";
my $pid = <CLLOCK>;
if (-e $lockfn) {
open(CLLOCK, "$lockfn") or die "Can't open Lockfile ($lockfn) $!";
my $pid = <CLLOCK>;