lib/PublicInbox/InboxWritable.pm
lib/PublicInbox/Isearch.pm
lib/PublicInbox/KQNotify.pm
-lib/PublicInbox/LeiDaemon.pm
+lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiSearch.pm
lib/PublicInbox/LeiStore.pm
lib/PublicInbox/Linkify.pm
# PublicInbox::Daemon, this is designed exclusively to handle trusted
# local clients with read/write access to the FS and use as many
# system resources as the local user has access to.
-package PublicInbox::LeiDaemon;
+package PublicInbox::LEI;
use strict;
use v5.10.1;
use parent qw(PublicInbox::DS);
unless ($sock) { # start the daemon if not started
my $err = $! + 0;
my $env = { PERL5LIB => join(':', @INC) };
- my $cmd = [ $^X, qw[-MPublicInbox::LeiDaemon
- -E PublicInbox::LeiDaemon::lazy_start(@ARGV)],
+ my $cmd = [ $^X, qw[-MPublicInbox::LEI
+ -E PublicInbox::LEI::lazy_start(@ARGV)],
$path, $err ];
require PublicInbox::Spawn;
waitpid(PublicInbox::Spawn::spawn($cmd, $env), 0);
die $line;
}
} else { # for systems lacking IO::FDPass
- require PublicInbox::LeiDaemon;
- PublicInbox::LeiDaemon::oneshot(__PACKAGE__);
+ require PublicInbox::LEI;
+ PublicInbox::LEI::oneshot(__PACKAGE__);
}
sub main {
# the below "line" directive is a magic comment, see perlsyn(1) manpage
# line 1 "lei-oneshot"
- require PublicInbox::LeiDaemon;
- PublicInbox::LeiDaemon::oneshot(__PACKAGE__);
+ require PublicInbox::LEI;
+ PublicInbox::LEI::oneshot(__PACKAGE__);
0;
}
1;
$test_lei_common = undef;
};
-require_ok 'PublicInbox::LeiDaemon';
+require_ok 'PublicInbox::LEI';
$LEI = 'lei-oneshot' if $test_lei_oneshot;
$test_lei_common->() if $test_lei_common;