Schedule::Cron = .97

Checked for updates and none fund. 

 

I might try you code but remember I am no programmer so have no idea
what app to use that would show the line numbers you suggest. 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas
Eckardt/eck
Sent: Monday, September 08, 2008 9:18 AM
To: ASSP development mailing list
Subject: [Assp-test] Antwort: Process change to scheduledSchedule::Cron
(RebuildSchedule)

 


Hi Daniel, 

What version of Shedule::Cron is installed on your system? 

The change of the 'Command' is done by Schedule::Cron only on linux
systems. To change this back, edit the following code: 

from: 
line 22862 

        my $cron = new Schedule::Cron( 
            sub{ 
                if ($isRunRebuildNow =~ /queued/) { 
                    &runRebuild(); 
                    mlog(0,"INFO: RebuildSpamdb removed from queue"); 
                    die "harmless"; 
                } 
                die "harmless" if
($ComWorker{$WorkerNumber}->{rereadconfig} or !
$ComWorker{$WorkerNumber}->{run}); 
                return; 
            }); 

to : 

        my $cron = new Schedule::Cron( 
            sub{ 
                if ($isRunRebuildNow =~ /queued/) { 
                    &runRebuild(); 
                    mlog(0,"INFO: RebuildSpamdb removed from queue"); 
                    die "harmless"; 
                } 
                die "harmless" if
($ComWorker{$WorkerNumber}->{rereadconfig} or !
$ComWorker{$WorkerNumber}->{run}); 
                return; 
            }),{processprefix => "$^X $0"};                        #  <-
0 is a zero 

Tell me if it works! - But it is only cosmetic! 



If the module unexpectly detaches (fork a new process, which should not
be done by default) - the following may help: 

change line 22877 from: 

        eval{$cron->run(nofork => 1,skip => 1, log => \&schedlog);}; 

to: 

        eval{$cron->run(nofork => 1,skip => 1, log => \&schedlog, detach
=> 0);}; 

Tell me if it works! 

Currently I've not a linuxsystem with the right perl version to check
this - on windows systems this problem not happens! 


Set 'MaintenanceLog' and 'ScheduleLog' to verbose! Try changing
'RebuildSchedule' to an other value ! 
Are you able to see the following in maillog  (?): 

......   [Worker_10001] Worker_10001 finished reloading configuration 
......   [Worker_10001] info: RebuildSpamdb Scheduler stopped 
......   [Worker_10001] info: starting RebuildSpamdb Scheduler with
'.......................' 
...... 
......   [Worker_10001] Schedule::Cron - Finished job ....       # <-
every 5 seconds after the scheduler is started 


Thomas




"Daniel K. Du Vall" <[EMAIL PROTECTED]> 
Gesendet von: [EMAIL PROTECTED] 

08.09.2008 15:41 

Bitte antworten an
ASSP development mailing list <[email protected]>

An

"ASSP development mailing list" <[email protected]> 

Kopie

        
Thema

[Assp-test] Process change to scheduled Schedule::Cron
(RebuildSchedule)

 

                




Process change to scheduled Schedule::Cron from Perl (RebuildSchedule)
ASSP 2.0.0 (5.19)

Is this normal after about a minute the process changes to:

Real memory: 1.48 GB total / 744.51 MB free   Swap space: 1 GB total /
1010.03 MB free

ID                  Owner                  Size                  Command
25108                  root                  418292 kB
Schedule::Cron MainLoop - next: Mon Sep
8 07:31:00 2008
25046                  root                  334476 kB
Schedule::Cron MainLoop - next: Mon Sep
8 07:31:00 2008

>From a running assp.pl and an assp_exchange.pl once this happens I am
no
longer able to stop, start, or restart using (service assp.pl restart)
and it never returns to the normal of the Perl processes I left it for
two days

Mail seem to be still flowing.

Daniel Du Vall

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test



DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential,
legally privileged and protected in law and are intended solely for the
use of the 
individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no
known virus in this email!
*******************************************************

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to