Detecting graceful restart

2003-07-01 Thread Javier
Hello,

Does anyone know if it's possible to hook into Apache
graceful restarts?

I tried PerlRestartHandler, but it doesn't seem to get
called. I see it called when I do apachectl startssl,
but not apachectl restart nor apachectl graceful.

None of the documentation I've found mentions wheter
it gets called only for plain restarts or for graceful
restarts also.

Thanks!

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


Re: Detecting graceful restart - wacky $$

2003-07-01 Thread Javier Alvarado
Never mind. It was a mistake on my part. I was setting it with 
push_handler() in my startup.pl, so of course it didn't persist. Once I 
switched to setting it in the httpd.conf it was called on every restart, 
graceful or not.

Now I'm having a different problem. In my restart handler I print out 
the PID using a simple 'warn pid = $$\n. I was expecting it would 
print out the PID of the parent (listener) Apache process, but the PID 
that is printed does not exist in the process table, and is in fact the 
real Apache parent PID - 1. Getting the PID with POSIX::getpid produces 
the same result.

I'm baffled by this. Can anyone shed any light?

Javier wrote:

Hello,

Does anyone know if it's possible to hook into Apache
graceful restarts?
I tried PerlRestartHandler, but it doesn't seem to get
called. I see it called when I do apachectl startssl,
but not apachectl restart nor apachectl graceful.
None of the documentation I've found mentions wheter
it gets called only for plain restarts or for graceful
restarts also.
Thanks!

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



Can't load mod_perl in Solaris 8

2001-07-12 Thread Javier Chicharro


  I've compiled mod_perl-1.26 (and I tried with 1.25 too) for Apache
1.3.20 in a Solaris 8.   When I start apache I get this error :

Syntax error on line 222 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/libexec/libperl.so into server: ld.so.1:
/opt/apache/bin/httpd: fatal: relocation error: file
/opt/apache/libexec/libperl.so:
symbol PL_markstack_ptr: referenced symbol not found
/etc/init.d/apache start: httpd could not be started

(The line 222 is the LoadModule for mod_perl)


  When I do ldd of libperl.so and httpd, seems that it finds all
dependences.


  Has somebody any idea about this problem?


-- 

SERTRAM NETWORKS, S.L.
Edificio Sertram, Acer 30-32   Tlf: 93 289 63 00
08038 - BARCELONA  Fax: 93 223 12 66
mailto:[EMAIL PROTECTED]   http://www.datagrama.net




Re: Can't load mod_perl in Solaris 8

2001-07-12 Thread Javier Chicharro

Ged Haywood wrote:
 
 Hi there,
 
 On Thu, 12 Jul 2001, Javier Chicharro wrote:
 
I've compiled mod_perl-1.26 (and I tried with 1.25 too) for Apache
  1.3.20 in a Solaris 8.   When I start apache I get this error :
 
  Syntax error on line 222 of /opt/apache/conf/httpd.conf:
  Cannot load /opt/apache/libexec/libperl.so into server: ld.so.1:
  /opt/apache/bin/httpd: fatal: relocation error: file
  /opt/apache/libexec/libperl.so:
  symbol PL_markstack_ptr: referenced symbol not found
  /etc/init.d/apache start: httpd could not be started
 
 Have a look in mod_perl-1.26/SUPPORT and post the information it suggests.
 
 Did you compile your Perl?  What compiler are you using?
 
 73,
 Ged.


  Yes, I compiled my Perl using Solaris cc.

  This is the output of perl -V :

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
osname=solaris, osvers=2.8, archname=i86pc-solaris
uname='sunos srvnoc2 5.8 generic_108529-08 i86pc i386 i86pc '
config_args='-Dprefix=/opt/perl-5.6.1 -Duseshrplib -Doptimize=-O
-des
-Dlocincpth=/usr/local/BerkeleyDB.3.2/include
-Dloclibpth=/usr/local/BerkeleyDB.3.2/lib
-Dccdlflags=-R/usr/local/BerkeleyDB.3.2/lib'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
cc='cc', ccflags ='-I/usr/local/BerkeleyDB.3.2/include
-D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-O',
cppflags='-I/usr/local/BerkeleyDB.3.2/include'
ccversion='Sun WorkShop 6 update 1 C 5.2 Patch 109514-03
2001/03/12',
gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, usemymalloc=y, prototype=define
  Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/BerkeleyDB.3.2/lib
-L/opt/SUNWspro/WS6U1/lib '
libpth=/usr/local/BerkeleyDB.3.2/lib /opt/SUNWspro/WS6U1/lib
/usr/lib
/usr/ccs/lib /usr/local/lib
libs=-lsocket -lnsl -ldb -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-R/usr/local/BerkeleyDB.3.2/lib -R
/opt/perl-5.6.1/lib/5.6.1/i86pc-solaris/CORE'
cccdlflags='-KPIC', lddlflags='-G -L/usr/local/BerkeleyDB.3.2/lib
-L/opt/SUNWspro/WS6U1/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under solaris
  Compiled at Jul 11 2001 16:39:06
  @INC:
/opt/perl-5.6.1/lib/5.6.1/i86pc-solaris
/opt/perl-5.6.1/lib/5.6.1
/opt/perl-5.6.1/lib/site_perl/5.6.1/i86pc-solaris
/opt/perl-5.6.1/lib/site_perl/5.6.1
/opt/perl-5.6.1/lib/site_perl
.


  And the configure options of mod_perl (v1.26) are : 

perl Makefile.PL APACHE_SRC=../apache_1.3.20/src DO_HTTPD=1 USE_APACI=1


  The configure of apache is :

./configure --prefix=/opt/apache --enable-rule=SHARED_CORE
--enable-shared=max



-- 

SERTRAM NETWORKS, S.L.
Edificio Sertram, Acer 30-32   Tlf: 93 289 63 00
08038 - BARCELONA  Fax: 93 223 12 66
mailto:[EMAIL PROTECTED]   http://www.datagrama.net




Hello

1999-11-03 Thread Javier Viveros

Hi from Paraguay. Did anyone wrote a chat client with mod_perl??? I am on
that project now, and it will be helpfull to read another source code.
Greetz and sorry for my poor english level.