Vastagh Norbert wrote:
>
> Mit csináljak?
Olvasd el a manpaget, ha mar buguntueknak nem sikerult :)
graceful
Gracefully restarts the Apache httpd daemon. If the daemon is
not running, it is started. This differs from a normal restart in that
currently open connections are not aborted. A side effect is that old
log files will not be closed immediately. This means that if used in a
log rotation script, a substantial delay may be necessary to ensure
that the old log files are closed before processing them. This command
automatically checks the configura tion files as in configtest before
initiating the restart to make sure Apache doesn't die. This is
equivalent to apachectl -k graceful.
> A logrotate konfigban az apache2 reload-ot cseréljen
> apache2ctl graceful-ra, vagy az kevés / rossz megoldás? ;-)
Nem tudom, mit csinalnak buguntuek, nem is erdekel kulonosebben. Ami
biztos, hogy sem az apache2-nek, sem az apache2ctl-nek nincs reload
opcioja (legalabbis a nalam levo verzioknak). Van restart es graceful,
az elso esetben ledobja a klienseket, a masodik esetben nem.
A debian fele megoldas:
apache-chroot:/# cat /etc/logrotate.d/apache2
/var/log/apache2/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
if [ -f /var/run/apache2.pid ]; then
/etc/init.d/apache2 restart > /dev/null
fi
endscript
}
Ez viszont le is allitja (az apache2 script restart cimen ertelmetlenul
bonyolult modon leallitja majd ujrainditja), na ez sem sokkal
jobb...(mitol is lenne ;)
--
Gabor HALASZ <[EMAIL PROTECTED]>
_________________________________________________
linux lista - [email protected]
http://mlf2.linux.rulez.org/mailman/listinfo/linux