Hello!
We write an application called "@Mail" - http://atmail.com/ - Which is written in Perl and configured to use mod-perl
However, with the latest Fedora-core 4 with Apache2::Reload, we cannot get our application running under mod-perl to correctly detect/refresh a Config.pm file that contains runtime settings ( which can be changed via a Webadmin )
I've validated the file is reloaded:
[Wed Jun 22 17:31:05 2005] Config.pm: Apache2::Reload: process 21651 reloading Atmail::Config from Atmail/Config.pm
[Wed Jun 22 17:31:05 2005] Config.pm: Apache2::Reload: process 21655 reloading Atmail::Config from Atmail/Config.pm
However any script that uses the Atmail::Config module under mod-perl, will randomly show the updated settings, and other times not.
We use the /etc/httpd/conf.d/perlatmail.conf settings of:
# This module is required, to reload any modules in the
# atmail application. If the WebAdmin saves settings in
# the Webadmin, the changes are automatically reloaded
PerlInitHandler Apache2::Reload
PerlSetVar ReloadAll Off
PerlSetVar ReloadModules "Atmail::Config"
PerlSetEnv PERL5LIB /usr/local/atmail/webmail/libs/
-
I've also modified all the scripts that use the module to call it like:
use Atmail::Config;
to:
require Atmail::Config; Atmail::Config->import();
use Atmail::Config;
But no luck either . . .
-
Also tried touching the files that used the module, however Apache was then crashing randomly.
[Wed Jun 22 16:49:16 2005] -e: Apache2::Reload: Checking mtime of main.pm
[Wed Jun 22 16:49:17 2005] [notice] child pid 20626 exit signal Segmentation fault (11)
[Wed Jun 22 16:49:19 2005] -e: Apache2::Reload: Checking mtime of main.pm
[Wed Jun 22 16:49:20 2005] [notice] child pid 20627 exit signal Segmentation fault (11)
[Wed Jun 22 16:49:21 2005] -e: Apache2::Reload: Checking mtime of main.pm
[Wed Jun 22 16:49:22 2005] [notice] child pid 20631 exit signal Segmentation fault (11)
-
We didn't have this problem under mod-perl 1.9X . . .
Any ideas/suggestions? Am I overlooking something really obvious? Any ideas would help!
Msg sent via @Mail v4 - http://atmail.com/