From 4a14e35aa72f11b04fac87d1ebc8cf8f1e2828e1 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 18 Feb 2003 06:38:34 +0000 Subject: List From: headers --- pingd | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'pingd') diff --git a/pingd b/pingd index 07c2601..e276e0b 100755 --- a/pingd +++ b/pingd @@ -3,7 +3,7 @@ $| = 1; # (c) 2002, 2003 Peter Palfrader -# $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 B +=item B B + =item B B =back @@ -150,6 +152,10 @@ Send a command to immediatly rebuild the keyrings. Send a command to immediatly rebuild the Thesaurus. +=item B + +Send a command to immediatly rebuild the From Header lines page. + =item B Dumps the current configuration to standard output. @@ -185,7 +191,7 @@ Print version number and exit sucessfully. Usefull only with the B, B, B, B, B, B, B, -B, or B command. +B, B, or B 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') { -- cgit v1.2.3