mirror of
git://scm.dxcluster.org/scm/spider
synced 2024-09-21 07:47:10 +00:00
add mojo->master fallback compatibility
This commit is contained in:
parent
6bcb0688c4
commit
bb9f4159e5
@ -293,5 +293,9 @@ sub run_cmd
|
||||
dbg("cmd out: $_") if isdbg('cron');
|
||||
}
|
||||
}
|
||||
|
||||
# for fallback from mojo branch
|
||||
sub spawn_cmd {goto &run_cmd};
|
||||
|
||||
1;
|
||||
__END__
|
||||
|
@ -1,4 +1,4 @@
|
||||
#
|
||||
# -*- perl -*-
|
||||
# The system variables - those indicated will need to be changed to suit your
|
||||
# circumstances (and callsign)
|
||||
#
|
||||
|
@ -12,6 +12,11 @@
|
||||
|
||||
require 5.004;
|
||||
|
||||
package main;
|
||||
|
||||
# set default paths, these should be overwritten by DXVars.pm
|
||||
use vars qw($data $system $cmd $localcmd $userfn);
|
||||
|
||||
# make sure that modules are searched in the order local then perl
|
||||
BEGIN {
|
||||
umask 002;
|
||||
@ -30,6 +35,11 @@ BEGIN {
|
||||
|
||||
mkdir "$root/local_cmd", 0777 unless -d "$root/local_cmd";
|
||||
|
||||
$data = "$root/data";
|
||||
$system = "$root/sys";
|
||||
$cmd = "$root/cmd";
|
||||
$localcmd = "$root/local_cmd";
|
||||
$userfn = "$data/users";
|
||||
|
||||
# try to create and lock a lockfile (this isn't atomic but
|
||||
# should do for now
|
||||
|
Loading…
Reference in New Issue
Block a user