Hello,
I have a problem with cronolog.
"apachectl stop" doesn't work when I activate
cronolog in Apache with pipe in directive. When trying CustomLog or TransferLog
whis "Directive |/path to cronolog/ /pathtologfile_%d%m%Y", I cannot stop
Apache with apachectl stop. The process apache is still UP.
Do you have any solution or patch for this problem
?
Thanks.
Thomas.
------------------------------------------
Here are the details of my tests :
Pb
Apache1.3.19
--------------------------
1) we have already checked
rotatelogs or cronolog with:
Apache1.3.12
Apache-ssl1.41
openssl-096
(no engine)
egd080 for PRNG
Perl 5.6.0
OS:Solaris 2.6
Apache is
compiled with CFLAG "SYSVSEM", with no EAPI (Apache-ssl).
DSO options, all
Apache modules (apache_ssl.c too ) are statically
linked.
rotatelogs or
cronolog is used with no problems.
options from binary ./httpd
-V
Server version: Apache/1.3.12 Ben-SSL/1.41 (Unix)
Server
built: Jun 19 2001 10:55:36
Server's Module Magic Number:
19990320:7
Server compiled with....
-D HAVE_MMAP
-D
USE_MMAP_SCOREBOARD
-D USE_MMAP_FILES
-D NO_WRITEV
-D
USE_SYSVSEM_SERIALIZED_ACCEPT
-D SHARED_CORE
-D
HTTPD_ROOT="/exec/commun/prog/apa1312"
-D
SUEXEC_BIN="/exec/commun/prog/apa1312/bin/suexec"
-D
SHARED_CORE_DIR="/exec/commun/prog/apa1312/libexec"
-D
DEFAULT_PIDLOG="logs/httpd.pid"
-D
DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
-D
DEFAULT_LOCKFILE="logs/httpd.lock"
-D
DEFAULT_XFERLOG="logs/access_log"
-D
DEFAULT_ERRORLOG="logs/error_log"
-D
TYPES_CONFIG_FILE="conf/mime.types"
-D
SERVER_CONFIG_FILE="conf/httpd.conf"
-D
ACCESS_CONFIG_FILE="conf/access.conf"
-D
RESOURCE_CONFIG_FILE="conf/srm.conf"
2) we tried rotatelogs or
cronolog on this
configuration:
Apache1.3.19
modssl-2.8.3_1.3.19
openssl-engine-096b
mm1.1.3
egd080
for PRNG
Perl 5.6.0
OS:Solaris 8
Apache is compiled with CFLAG
"SYSVSEM", with EAPI (modssl) and
EXPERIMENTAL
SSL for "CrytoDevice" on
board .
DSO options, all Apache modules (mod_ssl.c too ) are statically
linked.
options from binary: ./httpd -V
Server version: Apache/1.3.19
(Unix)
Server built: Oct 8 2001 16:25:57
Server's Module
Magic Number: 19990320:10
Server compiled with....
-D
EAPI
-D EAPI_MM
-D
EAPI_MM_CORE_PATH="logs/httpd.mm"
-D HAVE_MMAP
-D
USE_MMAP_SCOREBOARD
-D USE_MMAP_FILES
-D
USE_SYSVSEM_SERIALIZED_ACCEPT
-D SHARED_CORE
-D
HTTPD_ROOT="/exec/commun/prog/rpa1319/rpa"
-D
SUEXEC_BIN="/exec/commun/prog/rpa1319/rpa/bin/suexec"
-D
SHARED_CORE_DIR="/exec/commun/prog/rpa1319/rpa/libexec"
-D
DEFAULT_PIDLOG="logs/httpd.pid"
-D
DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
-D
DEFAULT_LOCKFILE="logs/httpd.lock"
-D
DEFAULT_XFERLOG="logs/access_log"
-D
DEFAULT_ERRORLOG="logs/error_log"
-D
TYPES_CONFIG_FILE="conf/mime.types"
-D
SERVER_CONFIG_FILE="conf/httpd.conf"
-D
ACCESS_CONFIG_FILE="conf/access.conf"
-D
RESOURCE_CONFIG_FILE="conf/srm.conf"
rotatelogs or cronolog is used with
problems.
- we have a problem only when using rotatelogs or cronolog (if we
switch
off
cronolog there is no problem with Apache):
- when trying
CustomLog or TransferLog whis "Directive |/path
to
cronolog/
/pathtologfile_%d%m%Y" [nickname], we
cannot:
->>"stop Apache with apachectl stop".
ipcs is still busy in
Semaphore -s used by Apache Uid , and Apache $PID
is
still on, only
children processes are died.
we need to kill Apache $PID with kill -TERM $PID
(or often kill -9 $PID)
,
and do ipcrm -s $semid.
->>"restart
Apache with apachectl start" with same problems.
only Apache $PID is still
on.
on LogLevel debug we can see "Terminated" in logfile but
"removed
PidFile
$PID" when shutdown
Apache.