projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added new DXUser with homemade data->ref and ref->data routines
[spider.git]
/
perl
/
cluster.pl
diff --git
a/perl/cluster.pl
b/perl/cluster.pl
index 1c1ba3c8581cac29b4b82d3ccb7e299a960231dd..2330bcda5639f5ae02986ce7119d206b5f1990b5 100755
(executable)
--- a/
perl/cluster.pl
+++ b/
perl/cluster.pl
@@
-14,6
+14,8
@@
require 5.004;
# make sure that modules are searched in the order local then perl
BEGIN {
# make sure that modules are searched in the order local then perl
BEGIN {
+ umask 002;
+
# root of directory tree for this system
$root = "/spider";
$root = $ENV{'DXSPIDER_ROOT'} if $ENV{'DXSPIDER_ROOT'};
# root of directory tree for this system
$root = "/spider";
$root = $ENV{'DXSPIDER_ROOT'} if $ENV{'DXSPIDER_ROOT'};
@@
-55,6
+57,7
@@
use Prefix;
use Bands;
use Geomag;
use CmdAlias;
use Bands;
use Geomag;
use CmdAlias;
+use Filter;
use Local;
use Fcntl ':flock';
use Local;
use Fcntl ':flock';
@@
-170,6
+173,7
@@
sub cease
Msg->event_loop(1, 0.05);
Msg->event_loop(1, 0.05);
Log('cluster', "DXSpider V$version stopped");
Msg->event_loop(1, 0.05);
Msg->event_loop(1, 0.05);
Log('cluster', "DXSpider V$version stopped");
+ DXUser::finish();
unlink $lockfn;
exit(0);
}
unlink $lockfn;
exit(0);
}
@@
-254,7
+258,7
@@
Bands::load();
# initialise User file system
print "loading user file system ...\n";
# initialise User file system
print "loading user file system ...\n";
-DXUser->init($userfn);
+DXUser->init($userfn
, 1
);
# start listening for incoming messages/connects
print "starting listener ...\n";
# start listening for incoming messages/connects
print "starting listener ...\n";