diff options
author | Peter Palfrader <peter@palfrader.org> | 2003-02-18 06:38:34 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2003-02-18 06:38:34 +0000 |
commit | 4a14e35aa72f11b04fac87d1ebc8cf8f1e2828e1 (patch) | |
tree | 6efaaa4a5a31a08e387bfd658630cd81cc14a4b7 /pingd | |
parent | 8008d99c22778c8735d4ad24352a61e2d7c17d84 (diff) |
List From: headers
Diffstat (limited to 'pingd')
-rwxr-xr-x | pingd | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -3,7 +3,7 @@ $| = 1; # (c) 2002, 2003 Peter Palfrader <peter@palfrader.org> -# $Id: pingd,v 1.97 2003/02/16 05:46:54 weasel Exp $ +# $Id: pingd,v 1.98 2003/02/18 06:38:06 weasel Exp $ # =pod @@ -42,6 +42,8 @@ pingd - echolot ping daemon =item B<pingd> B<buildthesaurus> +=item B<pingd> B<buildfromlines> + =item B<pingd> B<dumpconf> =back @@ -150,6 +152,10 @@ Send a command to immediatly rebuild the keyrings. Send a command to immediatly rebuild the Thesaurus. +=item B<buildfromlines> + +Send a command to immediatly rebuild the From Header lines page. + =item B<dumpconf> Dumps the current configuration to standard output. @@ -185,7 +191,7 @@ Print version number and exit sucessfully. Usefull only with the B<add>, B<set>, B<setremailercaps>, B<deleteremailercaps>, B<getkeyconf>, B<sendpings>, B<buildstats>, -B<buildkeys>, or B<buildthesaurus> command. +B<buildkeys>, B<buildthesaurus>, or B<buildfromlines> command. Don't send a HUP signal to the daemon which instructs it to process the commands after adding the command to the task list. @@ -290,6 +296,7 @@ use Echolot::Chain; use Echolot::Stats; use Echolot::Commands; use Echolot::Thesaurus; +use Echolot::Fromlines; use Echolot::Log; use POSIX qw(setsid); @@ -507,6 +514,7 @@ sub daemon_run($) { $scheduler->add('buildstats' , Echolot::Config::get()->{'buildstats'} , 0, \&Echolot::Stats::build_stats ); $scheduler->add('buildkeys' , Echolot::Config::get()->{'buildkeys'} , 0, \&Echolot::Stats::build_keys ); $scheduler->add('buildthesaurus' , Echolot::Config::get()->{'buildthesaurus'} , 0, \&Echolot::Thesaurus::build_thesaurus ); + $scheduler->add('buildfromlines' , Echolot::Config::get()->{'buildfromlines'} , 0, \&Echolot::Fromlines::build_fromlines ); $scheduler->add('metadata_backup' , Echolot::Config::get()->{'metadata_backup'} , 0, \&metadata_backup ); $scheduler->add('commitprospectives' , Echolot::Config::get()->{'commitprospectives'} , 0, \&commit_prospective_address ); @@ -640,6 +648,7 @@ if ($params->{'help'}) { print (" buildstats ... build remailer stats immediatly\n"); print (" buildkeys ... buid keyrings immediatly\n"); print (" buildthesaurus ... build thesaurus immediatly\n"); + print (" buildfromlines ... build fromlines immediatly\n"); print (" dumpconf dump configuration\n"); exit 0; }; @@ -687,6 +696,9 @@ if ($COMMAND eq 'add' || $COMMAND eq 'delete') { } elsif ($COMMAND eq 'buildthesaurus') { Echolot::Commands::addCommand("buildthesaurus"); hup_if_wanted($params->{'nohup'}); +} elsif ($COMMAND eq 'buildfromlines') { + Echolot::Commands::addCommand("buildfromlines"); + hup_if_wanted($params->{'nohup'}); } elsif ($COMMAND eq 'process') { daemon_hup(); } elsif ($COMMAND eq 'stop') { |